CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. project(ctkCommandLineModuleExplorer)
  2. #
  3. # See CTK/CMake/ctkMacroBuildApp.cmake for details
  4. #
  5. set(KIT_SRCS
  6. ctkCommandLineModuleExplorerMain.cpp
  7. ctkCmdLineModuleExplorerDirectorySettings.cpp
  8. ctkCmdLineModuleExplorerMainWindow.h
  9. ctkCmdLineModuleExplorerMainWindow.cpp
  10. ctkCmdLineModuleExplorerProgressWidget.cpp
  11. ctkCmdLineModuleExplorerTabList.cpp
  12. ctkCmdLineModuleExplorerTreeWidget.cpp
  13. )
  14. # Headers that should run through moc
  15. set(KIT_MOC_SRCS
  16. ctkCmdLineModuleExplorerMainWindow.h
  17. ctkCmdLineModuleExplorerProgressWidget.h
  18. ctkCmdLineModuleExplorerTabList.h
  19. ctkCmdLineModuleExplorerTreeWidget.h
  20. )
  21. # UI files
  22. set(KIT_UI_FORMS
  23. ctkCmdLineModuleExplorerMainWindow.ui
  24. ctkCmdLineModuleExplorerProgressWidget.ui
  25. )
  26. # Resources
  27. set(KIT_resources
  28. resources/ctkCmdLineModuleExplorer.qrc
  29. )
  30. set(QT_USE_QTUITOOLS 1)
  31. include(${QT_USE_FILE})
  32. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  33. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  34. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  35. ctkMacroBuildApp(
  36. NAME ${PROJECT_NAME}
  37. SRCS ${KIT_SRCS}
  38. MOC_SRCS ${KIT_MOC_SRCS}
  39. UI_FORMS ${KIT_UI_FORMS}
  40. TARGET_LIBRARIES ${KIT_target_libraries}
  41. RESOURCES ${KIT_resources}
  42. )
  43. target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
  44. # Testing
  45. if(BUILD_TESTING)
  46. # add_subdirectory(Testing)
  47. endif()