CMakeLists.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. project(CTKDICOMCore)
  2. #
  3. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  4. #
  5. set(KIT_export_directive "CTK_DICOM_CORE_EXPORT")
  6. # Source files
  7. set(KIT_SRCS
  8. ctkDICOMAbstractThumbnailGenerator.cpp
  9. ctkDICOMAbstractThumbnailGenerator.h
  10. ctkDICOMDatabase.cpp
  11. ctkDICOMDatabase.h
  12. ctkDICOMDataset.cpp
  13. ctkDICOMDataset.h
  14. ctkDICOMFilterProxyModel.cpp
  15. ctkDICOMFilterProxyModel.h
  16. ctkDICOMIndexer.cpp
  17. ctkDICOMIndexer.h
  18. ctkDICOMModel.cpp
  19. ctkDICOMModel.h
  20. ctkDICOMPersonName.cpp
  21. ctkDICOMPersonName.h
  22. ctkDICOMQuery.cpp
  23. ctkDICOMQuery.h
  24. ctkDICOMRetrieve.cpp
  25. ctkDICOMRetrieve.h
  26. ctkDICOMTester.cpp
  27. ctkDICOMTester.h
  28. # enhanced DcmSCU class - to be removed when
  29. # corresponding functionality is in a
  30. # DCMKT release - see notes in header file.
  31. ctkDcmSCU.cc
  32. )
  33. # Abstract class should not be wrapped !
  34. set_source_files_properties(
  35. ctkDICOMAbstractThumbnailGenerator.h
  36. WRAP_EXCLUDE
  37. )
  38. # Headers that should run through moc
  39. set(KIT_MOC_SRCS
  40. ctkDICOMAbstractThumbnailGenerator.h
  41. ctkDICOMDatabase.h
  42. ctkDICOMIndexer.h
  43. ctkDICOMFilterProxyModel.h
  44. ctkDICOMModel.h
  45. ctkDICOMQuery.h
  46. ctkDICOMRetrieve.h
  47. ctkDICOMTester.h
  48. )
  49. # UI files
  50. set(KIT_UI_FORMS
  51. )
  52. # Resources
  53. set(KIT_resources
  54. Resources/ctkDICOMCore.qrc
  55. )
  56. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  57. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  58. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  59. # create a dcm query/retrieve service config file that points to the build dir
  60. set (DCMQRSCP_STORE_DIR ${CMAKE_CURRENT_BINARY_DIR}/Testing)
  61. configure_file( Resources/dcmqrscp.cfg.in dcmqrscp.cfg )
  62. set (DCMQRSCP_CONFIG ${CMAKE_CURRENT_BINARY_DIR}/dcmqrscp.cfg)
  63. ctkMacroBuildLib(
  64. NAME ${PROJECT_NAME}
  65. EXPORT_DIRECTIVE ${KIT_export_directive}
  66. SRCS ${KIT_SRCS}
  67. MOC_SRCS ${KIT_MOC_SRCS}
  68. UI_FORMS ${KIT_UI_FORMS}
  69. TARGET_LIBRARIES ${KIT_target_libraries}
  70. RESOURCES ${KIT_resources}
  71. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  72. )
  73. if(CTK_WRAP_PYTHONQT_FULL OR CTK_WRAP_PYTHONQT_LIGHT)
  74. ctkMacroBuildLibWrapper(
  75. TARGET ${PROJECT_NAME}
  76. SRCS ${KIT_SRCS}
  77. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  78. )
  79. endif()
  80. # Plugins
  81. #if(CTK_BUILD_QTDESIGNER_PLUGINS)
  82. # add_subdirectory(Plugins)
  83. #endif()
  84. # Testing
  85. if(BUILD_TESTING)
  86. add_subdirectory(Testing)
  87. endif()