CMakeLists.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. project(ctkCommandLineModuleExplorer)
  2. #
  3. # See CTK/CMake/ctkMacroBuildApp.cmake for details
  4. #
  5. set(KIT_SRCS
  6. ctkCommandLineModuleExplorerMain.cpp
  7. ctkCmdLineModuleExplorerConstants.cpp
  8. ctkCmdLineModuleExplorerDirectorySettings.cpp
  9. ctkCmdLineModuleExplorerMainWindow.h
  10. ctkCmdLineModuleExplorerMainWindow.cpp
  11. ctkCmdLineModuleExplorerModulesSettings.cpp
  12. ctkCmdLineModuleExplorerOutputText.cpp
  13. ctkCmdLineModuleExplorerProgressWidget.cpp
  14. ctkCmdLineModuleExplorerTabList.cpp
  15. ctkCmdLineModuleExplorerTreeWidget.cpp
  16. )
  17. # Headers that should run through moc
  18. set(KIT_MOC_SRCS
  19. ctkCmdLineModuleExplorerMainWindow.h
  20. ctkCmdLineModuleExplorerModulesSettings.h
  21. ctkCmdLineModuleExplorerOutputText.h
  22. ctkCmdLineModuleExplorerProgressWidget.h
  23. ctkCmdLineModuleExplorerTabList.h
  24. ctkCmdLineModuleExplorerTreeWidget.h
  25. )
  26. # UI files
  27. set(KIT_UI_FORMS
  28. ctkCmdLineModuleExplorerDirectorySettings.ui
  29. ctkCmdLineModuleExplorerMainWindow.ui
  30. ctkCmdLineModuleExplorerModulesSettings.ui
  31. ctkCmdLineModuleExplorerProgressWidget.ui
  32. )
  33. # Resources
  34. set(KIT_resources
  35. resources/ctkCmdLineModuleExplorer.qrc
  36. )
  37. set(QT_USE_QTUITOOLS 1)
  38. include(${QT_USE_FILE})
  39. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  40. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  41. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  42. ctkMacroBuildApp(
  43. NAME ${PROJECT_NAME}
  44. SRCS ${KIT_SRCS}
  45. MOC_SRCS ${KIT_MOC_SRCS}
  46. UI_FORMS ${KIT_UI_FORMS}
  47. TARGET_LIBRARIES ${KIT_target_libraries}
  48. RESOURCES ${KIT_resources}
  49. )
  50. target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
  51. # Testing
  52. if(BUILD_TESTING)
  53. # add_subdirectory(Testing)
  54. endif()