dino/CMakeLists.txt

26 lines
721 B
CMake
Raw Normal View History

2017-03-02 15:37:32 +01: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})
set (VALA_CFLAGS -Wno-deprecated-declarations -Wno-incompatible-pointer-types -Wno-int-conversion)
add_subdirectory(qlite)
add_subdirectory(vala-xmpp)
add_subdirectory(client)