CMakeLists.txt 813 B

123456789101112131415161718192021222324252627282930313233343536
  1. PROJECT(org_commontk_example_dicomapp)
  2. SET(PLUGIN_export_directive "org_commontk_example_dicomapp_EXPORT")
  3. SET(PLUGIN_SRCS
  4. ctkExampleDicomAppPlugin.cpp
  5. ctkExampleDicomAppLogic.cpp
  6. )
  7. # Files which should be processed by Qts moc
  8. SET(PLUGIN_MOC_SRCS
  9. ctkExampleDicomAppPlugin_p.h
  10. ctkExampleDicomAppLogic_p.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. #Compute the plugin dependencies
  19. ctkMacroGetTargetLibraries(PLUGIN_target_libraries)
  20. ctkMacroBuildPlugin(
  21. NAME ${PROJECT_NAME}
  22. EXPORT_DIRECTIVE ${PLUGIN_export_directive}
  23. SRCS ${PLUGIN_SRCS}
  24. MOC_SRCS ${PLUGIN_MOC_SRCS}
  25. UI_FORMS ${PLUGIN_UI_FORMS}
  26. RESOURCES ${PLUGIN_resources}
  27. TARGET_LIBRARIES ${PLUGIN_target_libraries}
  28. )