CMakeLists.txt 982 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. PROJECT(org_commontk_dicom_examplehost)
  2. SET(PLUGIN_export_directive "org_commontk_dicom_examplehost_EXPORT")
  3. SET(PLUGIN_SRCS
  4. ctkDicomExampleHostPlugin.cpp
  5. ctkDicomExampleHost.cpp
  6. )
  7. # Files which should be processed by Qts moc
  8. SET(PLUGIN_MOC_SRCS
  9. ctkDicomExampleHostPlugin_p.h
  10. ctkDicomExampleHost.h
  11. )
  12. # Qt Designer files which should be processed by Qts uic
  13. SET(PLUGIN_UI_FORMS
  14. )
  15. # QRC Files which should be compiled into the plugin
  16. SET(PLUGIN_resources
  17. )
  18. # Additional directories to include - Note that CTK_INCLUDE_LIBRARIES is already included
  19. SET(PLUGIN_include_directories
  20. )
  21. #Compute the plugin dependencies
  22. ctkMacroGetTargetLibraries(PLUGIN_target_libraries)
  23. ctkMacroBuildPlugin(
  24. NAME ${PROJECT_NAME}
  25. EXPORT_DIRECTIVE ${PLUGIN_export_directive}
  26. INCLUDE_DIRECTORIES ${PLUGIN_include_directories}
  27. SRCS ${PLUGIN_SRCS}
  28. MOC_SRCS ${PLUGIN_MOC_SRCS}
  29. UI_FORMS ${PLUGIN_UI_FORMS}
  30. RESOURCES ${PLUGIN_resources}
  31. TARGET_LIBRARIES ${PLUGIN_target_libraries}
  32. )