CMakeLists.txt 783 B

1234567891011121314151617181920212223242526272829303132333435
  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. )
  11. # Qt Designer files which should be processed by Qts uic
  12. SET(PLUGIN_UI_FORMS
  13. )
  14. # QRC Files which should be compiled into the plugin
  15. SET(PLUGIN_resources
  16. )
  17. #Compute the plugin dependencies
  18. ctkMacroGetTargetLibraries(PLUGIN_target_libraries)
  19. ctkMacroBuildPlugin(
  20. NAME ${PROJECT_NAME}
  21. EXPORT_DIRECTIVE ${PLUGIN_export_directive}
  22. SRCS ${PLUGIN_SRCS}
  23. MOC_SRCS ${PLUGIN_MOC_SRCS}
  24. UI_FORMS ${PLUGIN_UI_FORMS}
  25. RESOURCES ${PLUGIN_resources}
  26. TARGET_LIBRARIES ${PLUGIN_target_libraries}
  27. )