You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.1 KiB

11 years ago
  1. project(qcrosssuite)
  2. cmake_minimum_required(VERSION 2.8)
  3. MACRO(ADD_TARGET_PROPERTIES _target _name)
  4. SET(_properties)
  5. FOREACH(_prop ${ARGN})
  6. SET(_properties "${_properties} ${_prop}")
  7. ENDFOREACH(_prop)
  8. GET_TARGET_PROPERTY(_old_properties ${_target} ${_name})
  9. MESSAGE(STATUS "adding property to ${_target} ${_name}:" ${_properties})
  10. IF(NOT _old_properties)
  11. # in case it's NOTFOUND
  12. SET(_old_properties)
  13. ENDIF(NOT _old_properties)
  14. SET_TARGET_PROPERTIES(${_target} PROPERTIES ${_name} "${_old_properties} ${_properties}")
  15. ENDMACRO(ADD_TARGET_PROPERTIES)
  16. set(DEBUG_FLAGS "-Wall -Wno-long-long -pedantic")
  17. set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${DEBUG_FLAGS}")
  18. set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} ${DEBUG_FLAGS}")
  19. set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DEBUG_FLAGS}")
  20. set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} ${DEBUG_FLAGS}")
  21. add_subdirectory(libqnono libqcross)
  22. add_subdirectory(qcross qcross)
  23. add_dependencies(qcross qnono)
  24. add_subdirectory(qcrossedit qcrossedit)
  25. add_dependencies(qcrossedit qnono)