CMakeLists.txt 1.1 KB

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