CMakeLists.txt 905 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. project(org_commontk_dah_exampleapp)
  2. set(PLUGIN_export_directive "org_commontk_example_dicomapp_EXPORT")
  3. set(PLUGIN_SRCS
  4. ctkExampleDicomAppLogic_p.h
  5. ctkExampleDicomAppPlugin_p.h
  6. ctkExampleDicomAppLogic.cpp
  7. ctkExampleDicomAppPlugin.cpp
  8. )
  9. # Files which should be processed by Qts moc
  10. set(PLUGIN_MOC_SRCS
  11. ctkExampleDicomAppLogic_p.h
  12. ctkExampleDicomAppPlugin_p.h
  13. )
  14. # Qt Designer files which should be processed by Qts uic
  15. set(PLUGIN_UI_FORMS
  16. ctkExampleDicomAppWidget.ui
  17. )
  18. # QRC Files which should be compiled into the plugin
  19. set(PLUGIN_resources
  20. )
  21. #Compute the plugin dependencies
  22. ctkFunctionGetTargetLibraries(PLUGIN_target_libraries)
  23. ctkMacroBuildPlugin(
  24. NAME ${PROJECT_NAME}
  25. EXPORT_DIRECTIVE ${PLUGIN_export_directive}
  26. SRCS ${PLUGIN_SRCS}
  27. MOC_SRCS ${PLUGIN_MOC_SRCS}
  28. UI_FORMS ${PLUGIN_UI_FORMS}
  29. RESOURCES ${PLUGIN_resources}
  30. TARGET_LIBRARIES ${PLUGIN_target_libraries}
  31. )