2017-03-02 14:37:32 +00:00
|
|
|
list(APPEND CMAKE_MODULE_PATH
|
|
|
|
${CMAKE_SOURCE_DIR}/cmake
|
|
|
|
)
|
|
|
|
|
|
|
|
include(CheckCCompilerFlag)
|
|
|
|
macro(AddCFlagIfSupported flag test)
|
|
|
|
CHECK_C_COMPILER_FLAG(${flag} ${test})
|
|
|
|
if(${${test}})
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${flag}")
|
|
|
|
endif()
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
|
|
|
if("Ninja" STREQUAL ${CMAKE_GENERATOR})
|
|
|
|
AddCFlagIfSupported(-fdiagnostics-color COMPILER_SUPPORTS_fdiagnistics-color)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
|
|
|
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
2017-03-11 22:20:25 +00:00
|
|
|
set (GLOBAL_DEBUG_FLAGS -g)
|
|
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GLOBAL_DEBUG_FLAGS}")
|
2017-03-10 18:34:56 +00:00
|
|
|
set (VALA_CFLAGS -Wno-deprecated-declarations -Wno-incompatible-pointer-types -Wno-int-conversion -Wno-discarded-qualifiers)
|
2017-03-02 14:37:32 +00:00
|
|
|
|
|
|
|
add_subdirectory(qlite)
|
2017-03-10 16:01:45 +00:00
|
|
|
add_subdirectory(xmpp-vala)
|
2017-03-10 18:34:56 +00:00
|
|
|
add_subdirectory(libdino)
|
2017-03-11 00:29:38 +00:00
|
|
|
add_subdirectory(main)
|
|
|
|
add_subdirectory(plugins)
|