CMakeLists.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. # Fix this after having discussed include dependencies with Jc
  25. foreach(_dep ${${PROJECT_NAME}_DEPENDENCIES})
  26. include_directories(${${_dep}_SOURCE_DIR} ${${_dep}_BINARY_DIR})
  27. endforeach()
  28. ctkMacroBuildApp(
  29. NAME ${PROJECT_NAME}
  30. SRCS ${KIT_SRCS}
  31. MOC_SRCS ${KIT_MOC_SRCS}
  32. UI_FORMS ${KIT_UI_FORMS}
  33. TARGET_LIBRARIES ${KIT_target_libraries}
  34. RESOURCES ${KIT_resources}
  35. )
  36. # Testing
  37. if(BUILD_TESTING)
  38. # add_subdirectory(Testing)
  39. endif()