31 lines
1.1 KiB
CMake
31 lines
1.1 KiB
CMake
|
project(qcrosssuite)
|
||
|
cmake_minimum_required(VERSION 2.8)
|
||
|
|
||
|
MACRO(ADD_TARGET_PROPERTIES _target _name)
|
||
|
SET(_properties)
|
||
|
FOREACH(_prop ${ARGN})
|
||
|
SET(_properties "${_properties} ${_prop}")
|
||
|
ENDFOREACH(_prop)
|
||
|
GET_TARGET_PROPERTY(_old_properties ${_target} ${_name})
|
||
|
MESSAGE(STATUS "adding property to ${_target} ${_name}:" ${_properties})
|
||
|
IF(NOT _old_properties)
|
||
|
# in case it's NOTFOUND
|
||
|
SET(_old_properties)
|
||
|
ENDIF(NOT _old_properties)
|
||
|
SET_TARGET_PROPERTIES(${_target} PROPERTIES ${_name} "${_old_properties} ${_properties}")
|
||
|
ENDMACRO(ADD_TARGET_PROPERTIES)
|
||
|
|
||
|
set(DEBUG_FLAGS "-Wall -Wno-long-long -pedantic")
|
||
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${DEBUG_FLAGS}")
|
||
|
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} ${DEBUG_FLAGS}")
|
||
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DEBUG_FLAGS}")
|
||
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} ${DEBUG_FLAGS}")
|
||
|
|
||
|
add_subdirectory(libqnono libqcross)
|
||
|
|
||
|
add_subdirectory(qcross qcross)
|
||
|
add_dependencies(qcross qnono)
|
||
|
|
||
|
add_subdirectory(qcrossedit qcrossedit)
|
||
|
add_dependencies(qcrossedit qnono)
|