CMakeLists.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. PROJECT(org_commontk_dah_core)
  2. FIND_PACKAGE(QtSOAP)
  3. IF(NOT QtSOAP_FOUND)
  4. MESSAGE(FATAL_ERROR "error: QtSOAP package is required to build ${PROJECT_NAME}" )
  5. ENDIF()
  6. # TODO: Fix this after discussing include dependencies with Jc
  7. SET(CTK_BASE_INCLUDE_DIRS ${CTK_BASE_INCLUDE_DIRS} ${QTSOAP_INCLUDE_DIR} CACHE INTERNAL "CTK includes" FORCE)
  8. SET(PLUGIN_export_directive "org_commontk_dah_core_EXPORT")
  9. # Additional directories to include
  10. SET(PLUGIN_include_directories
  11. )
  12. SET(PLUGIN_SRCS
  13. ctkDicomAppHostingCorePlugin.cpp
  14. ctkSimpleSoapServer.cpp
  15. ctkSoapConnectionRunnable.cpp
  16. ctkDicomServicePrivate.cpp
  17. ctkDicomAppHostingTypes.h
  18. ctkDicomAppHostingTypesHelper.h
  19. ctkDicomExchangeService.cpp
  20. ctkSoapMessageProcessorList.cpp
  21. ctkExchangeSoapMessageProcessor.cpp
  22. )
  23. # Files which should be processed by Qts moc
  24. SET(PLUGIN_MOC_SRCS
  25. ctkDicomAppInterface.h
  26. ctkDicomExchangeInterface.h
  27. ctkDicomHostInterface.h
  28. ctkDicomServicePrivate.h
  29. ctkDicomAppHostingCorePlugin_p.h
  30. ctkSimpleSoapServer.h
  31. ctkSoapConnectionRunnable_p.h
  32. ctkDicomExchangeService.h
  33. )
  34. # Qt Designer files which should be processed by Qts uic
  35. SET(PLUGIN_UI_FORMS
  36. )
  37. # QRC Files which should be compiled into the plugin
  38. SET(PLUGIN_resources
  39. Resources/dah_wsdl.qrc
  40. )
  41. #Compute the plugin dependencies
  42. ctkMacroGetTargetLibraries(PLUGIN_target_libraries)
  43. ctkMacroBuildPlugin(
  44. NAME ${PROJECT_NAME}
  45. EXPORT_DIRECTIVE ${PLUGIN_export_directive}
  46. INCLUDE_DIRECTORIES ${PLUGIN_include_directories}
  47. SRCS ${PLUGIN_SRCS}
  48. MOC_SRCS ${PLUGIN_MOC_SRCS}
  49. UI_FORMS ${PLUGIN_UI_FORMS}
  50. RESOURCES ${PLUGIN_resources}
  51. TARGET_LIBRARIES ${PLUGIN_target_libraries}
  52. )