CMakeLists.txt 1.9 KB

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