CMakeLists.txt 1021 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. project(ctkCommandLineModuleExplorer)
  2. #
  3. # See CTK/CMake/ctkMacroBuildApp.cmake for details
  4. #
  5. set(KIT_SRCS
  6. ctkCommandLineModuleExplorerMain.cpp
  7. ctkCLModuleExplorerMainWindow.h
  8. ctkCLModuleExplorerMainWindow.cpp
  9. )
  10. # Headers that should run through moc
  11. set(KIT_MOC_SRCS
  12. ctkCLModuleExplorerMainWindow.h
  13. )
  14. # UI files
  15. set(KIT_UI_FORMS
  16. ctkCLModuleExplorerMainWindow.ui
  17. )
  18. # Resources
  19. set(KIT_resources
  20. resources/ctkCLModuleExplorer.qrc
  21. )
  22. set(QT_USE_QTUITOOLS 1)
  23. include(${QT_USE_FILE})
  24. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  25. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  26. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  27. ctkMacroBuildApp(
  28. NAME ${PROJECT_NAME}
  29. SRCS ${KIT_SRCS}
  30. MOC_SRCS ${KIT_MOC_SRCS}
  31. UI_FORMS ${KIT_UI_FORMS}
  32. TARGET_LIBRARIES ${KIT_target_libraries}
  33. RESOURCES ${KIT_resources}
  34. )
  35. target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
  36. # Testing
  37. if(BUILD_TESTING)
  38. # add_subdirectory(Testing)
  39. endif()