CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. project(org_commontk_dah_examplehost)
  2. set(PLUGIN_export_directive "org_commontk_dah_examplehost_EXPORT")
  3. set(PLUGIN_SRCS
  4. ctkExampleDicomHost.cpp
  5. ctkExampleDicomHostPlugin.cpp
  6. ctkExampleDicomHostPlugin_p.h
  7. ctkHostedAppPlaceholderWidget.cpp
  8. ctkExampleHostControlWidget.cpp
  9. ctkExampleHostLogic.cpp
  10. )
  11. # Files which should be processed by Qts moc
  12. set(PLUGIN_MOC_SRCS
  13. ctkExampleDicomHost.h
  14. ctkExampleDicomHostPlugin_p.h
  15. ctkHostedAppPlaceholderWidget.h
  16. ctkExampleHostControlWidget.h
  17. ctkExampleHostLogic.h
  18. )
  19. # Qt Designer files which should be processed by Qts uic
  20. set(PLUGIN_UI_FORMS
  21. ctkExampleHostControlWidget.ui
  22. )
  23. # QRC Files which should be compiled into the plugin
  24. set(PLUGIN_resources
  25. )
  26. # Additional directories to include - Note that CTK_INCLUDE_LIBRARIES is already included
  27. set(PLUGIN_include_directories
  28. )
  29. #Compute the plugin dependencies
  30. ctkFunctionGetTargetLibraries(PLUGIN_target_libraries)
  31. ctkMacroBuildPlugin(
  32. NAME ${PROJECT_NAME}
  33. EXPORT_DIRECTIVE ${PLUGIN_export_directive}
  34. INCLUDE_DIRECTORIES ${PLUGIN_include_directories}
  35. SRCS ${PLUGIN_SRCS}
  36. MOC_SRCS ${PLUGIN_MOC_SRCS}
  37. UI_FORMS ${PLUGIN_UI_FORMS}
  38. RESOURCES ${PLUGIN_resources}
  39. TARGET_LIBRARIES ${PLUGIN_target_libraries}
  40. )