CMakeLists.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. ctkCmdLineModuleExplorerProgressListWidget.cpp
  14. ctkCmdLineModuleExplorerProgressWidget.cpp
  15. ctkCmdLineModuleExplorerTabList.cpp
  16. ctkCmdLineModuleExplorerTreeWidget.cpp
  17. )
  18. # Headers that should run through moc
  19. set(KIT_MOC_SRCS
  20. ctkCmdLineModuleExplorerMainWindow.h
  21. ctkCmdLineModuleExplorerModulesSettings.h
  22. ctkCmdLineModuleExplorerOutputText.h
  23. ctkCmdLineModuleExplorerProgressListWidget.h
  24. ctkCmdLineModuleExplorerProgressWidget.h
  25. ctkCmdLineModuleExplorerTabList.h
  26. ctkCmdLineModuleExplorerTreeWidget.h
  27. )
  28. # UI files
  29. set(KIT_UI_FORMS
  30. ctkCmdLineModuleExplorerDirectorySettings.ui
  31. ctkCmdLineModuleExplorerMainWindow.ui
  32. ctkCmdLineModuleExplorerModulesSettings.ui
  33. ctkCmdLineModuleExplorerProgressWidget.ui
  34. )
  35. # Resources
  36. set(KIT_resources
  37. resources/ctkCmdLineModuleExplorer.qrc
  38. )
  39. set(QT_USE_QTUITOOLS 1)
  40. include(${QT_USE_FILE})
  41. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  42. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  43. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  44. ctkMacroBuildApp(
  45. NAME ${PROJECT_NAME}
  46. SRCS ${KIT_SRCS}
  47. MOC_SRCS ${KIT_MOC_SRCS}
  48. UI_FORMS ${KIT_UI_FORMS}
  49. TARGET_LIBRARIES ${KIT_target_libraries}
  50. RESOURCES ${KIT_resources}
  51. )
  52. target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
  53. # Testing
  54. if(BUILD_TESTING)
  55. # add_subdirectory(Testing)
  56. endif()