CMakeLists.txt 2.1 KB

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