CMakeLists.txt 1.6 KB

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