CMakeLists.txt 1.0 KB

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