CMakeLists.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. project(org_commontk_dah_core)
  2. #message(QtSOAP_LIBRARY_DIRS:${QtSOAP_LIBRARY_DIRS})
  3. SET(PLUGIN_export_directive "org_commontk_dah_core_EXPORT")
  4. set(PLUGIN_SRCS
  5. ctkDicomAbstractExchangeCache.cpp
  6. ctkDicomAppHostingCorePlugin.cpp
  7. ctkDicomAppHostingCorePlugin_p.h
  8. ctkDicomAppHostingTypes.cpp
  9. ctkDicomAppHostingTypesHelper.cpp
  10. ctkDicomAppInterface.h
  11. ctkDicomAvailableDataHelper.cpp
  12. ctkDicomAvailableDataHelper.h
  13. ctkDicomExchangeInterface.h
  14. ctkDicomExchangeService.cpp
  15. ctkDicomHostInterface.h
  16. ctkDicomObjectLocatorCache.cpp
  17. ctkExchangeSoapMessageProcessor.cpp
  18. ctkSimpleSoapClient.cpp
  19. ctkSimpleSoapServer.cpp
  20. ctkSoapConnectionRunnable.cpp
  21. ctkSoapConnectionRunnable_p.h
  22. ctkSoapMessageProcessor.cpp
  23. ctkSoapMessageProcessorList.cpp
  24. )
  25. # Files which should be processed by Qts moc
  26. set(PLUGIN_MOC_SRCS
  27. ctkDicomAbstractExchangeCache.h
  28. ctkDicomAppHostingCorePlugin_p.h
  29. ctkSimpleSoapClient.h
  30. ctkSimpleSoapServer.h
  31. ctkSoapConnectionRunnable_p.h
  32. )
  33. # Qt Designer files which should be processed by Qts uic
  34. set(PLUGIN_UI_FORMS
  35. )
  36. # QRC Files which should be compiled into the plugin
  37. set(PLUGIN_resources
  38. Resources/dah_wsdl.qrc
  39. )
  40. #Compute the plugin dependencies
  41. ctkFunctionGetTargetLibraries(PLUGIN_target_libraries)
  42. if(CTK_QT_VERSION VERSION_GREATER "4")
  43. list(APPEND PLUGIN_target_libraries Qt5::Network Qt5::Widgets)
  44. endif()
  45. ctkMacroBuildPlugin(
  46. NAME ${PROJECT_NAME}
  47. EXPORT_DIRECTIVE ${PLUGIN_export_directive}
  48. SRCS ${PLUGIN_SRCS}
  49. MOC_SRCS ${PLUGIN_MOC_SRCS}
  50. UI_FORMS ${PLUGIN_UI_FORMS}
  51. RESOURCES ${PLUGIN_resources}
  52. TARGET_LIBRARIES ${PLUGIN_target_libraries}
  53. )
  54. if(BUILD_TESTING)
  55. add_subdirectory(Testing)
  56. endif()