CMakeLists.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. set(QT_USE_QTUITOOLS 1)
  47. include(${QT_USE_FILE})
  48. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  49. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  50. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  51. ctkMacroBuildApp(
  52. NAME ${PROJECT_NAME}
  53. SRCS ${KIT_SRCS}
  54. MOC_SRCS ${KIT_MOC_SRCS}
  55. UI_FORMS ${KIT_UI_FORMS}
  56. TARGET_LIBRARIES ${KIT_target_libraries}
  57. RESOURCES ${KIT_resources}
  58. )
  59. target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
  60. # Testing
  61. if(BUILD_TESTING)
  62. # add_subdirectory(Testing)
  63. endif()