CMakeLists.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. ctkHostedAppPlaceholderWidget.cpp
  7. )
  8. # Files which should be processed by Qts moc
  9. SET(PLUGIN_MOC_SRCS
  10. ctkExampleDicomHost.h
  11. ctkExampleDicomHostPlugin_p.h
  12. ctkHostedAppPlaceholderWidget.h
  13. )
  14. # Qt Designer files which should be processed by Qts uic
  15. SET(PLUGIN_UI_FORMS
  16. )
  17. # QRC Files which should be compiled into the plugin
  18. SET(PLUGIN_resources
  19. )
  20. # Additional directories to include - Note that CTK_INCLUDE_LIBRARIES is already included
  21. SET(PLUGIN_include_directories
  22. )
  23. #Compute the plugin dependencies
  24. ctkMacroGetTargetLibraries(PLUGIN_target_libraries)
  25. ctkMacroBuildPlugin(
  26. NAME ${PROJECT_NAME}
  27. EXPORT_DIRECTIVE ${PLUGIN_export_directive}
  28. INCLUDE_DIRECTORIES ${PLUGIN_include_directories}
  29. SRCS ${PLUGIN_SRCS}
  30. MOC_SRCS ${PLUGIN_MOC_SRCS}
  31. UI_FORMS ${PLUGIN_UI_FORMS}
  32. RESOURCES ${PLUGIN_resources}
  33. TARGET_LIBRARIES ${PLUGIN_target_libraries}
  34. )