CMakeLists.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. project(ctkEventBusDemo)
  2. #
  3. # See CTK/CMake/ctkMacroBuildApp.cmake for details
  4. #
  5. set(KIT_SRCS
  6. ctkEventBusDemoMain.cpp
  7. ctkEventBusDemoMainWindow.cpp
  8. ctkEventBusDemoMainWindow.h
  9. )
  10. # Headers that should run through moc
  11. set(KIT_MOC_SRCS
  12. ctkEventBusDemoMainWindow.h
  13. )
  14. # UI files
  15. set(KIT_UI_FORMS
  16. ctkEventBusDemoMainWindow.ui
  17. )
  18. # Resources
  19. set(KIT_resources
  20. )
  21. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  22. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  23. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  24. # Additional directories to include - Note that CTK_INCLUDE_LIBRARIES is already included
  25. set(KIT_include_directories
  26. )
  27. # Fix this after having discussed include dependencies with Jc
  28. foreach(_dep ${${PROJECT_NAME}_DEPENDENCIES})
  29. include_directories(${${_dep}_SOURCE_DIR} ${${_dep}_BINARY_DIR})
  30. endforeach()
  31. ctkMacroBuildApp(
  32. NAME ${PROJECT_NAME}
  33. INCLUDE_DIRECTORIES ${KIT_include_directories}
  34. SRCS ${KIT_SRCS}
  35. MOC_SRCS ${KIT_MOC_SRCS}
  36. UI_FORMS ${KIT_UI_FORMS}
  37. TARGET_LIBRARIES ${KIT_target_libraries}
  38. RESOURCES ${KIT_resources}
  39. )
  40. # Testing
  41. if(BUILD_TESTING)
  42. # add_subdirectory(Testing)
  43. endif()