comparison CMakeLists.txt @ 6:c02d12eb34d4

added LoadNifti()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Jul 2023 14:45:20 +0200
parents 0f03a8a0bd6f
children cb7fd3c25f40
comparison
equal deleted inserted replaced
5:1cc024bb662a 6:c02d12eb34d4
60 60
61 # Advanced parameters to fine-tune linking against system libraries 61 # Advanced parameters to fine-tune linking against system libraries
62 SET(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") 62 SET(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK")
63 63
64 # Parameters to fine-tune linking against system libraries 64 # Parameters to fine-tune linking against system libraries
65 set(USE_SYSTEM_NIFTILIB ON CACHE BOOL "Use the system version of niftilib")
65 set(USE_SYSTEM_VTK ON CACHE BOOL "Use the system version of VTK") 66 set(USE_SYSTEM_VTK ON CACHE BOOL "Use the system version of VTK")
66 67
67 68
68 ##################################################################### 69 #####################################################################
69 ## Download and setup the Orthanc framework 70 ## Download and setup the Orthanc framework
118 ##################################################################### 119 #####################################################################
119 ## Platform-specific configuration 120 ## Platform-specific configuration
120 ##################################################################### 121 #####################################################################
121 122
122 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibVtkConfiguration.cmake) 123 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibVtkConfiguration.cmake)
124 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibNiftiConfiguration.cmake)
123 125
124 add_definitions( 126 add_definitions(
125 -DHAS_ORTHANC_EXCEPTION=1 127 -DHAS_ORTHANC_EXCEPTION=1
126 -DORTHANC_ENABLE_LOGGING_PLUGIN=1 128 -DORTHANC_ENABLE_LOGGING_PLUGIN=1
127 -DORTHANC_FRAMEWORK_BUILDING_PLUGIN=1 129 -DORTHANC_FRAMEWORK_BUILDING_PLUGIN=1
201 ${ORTHANC_CORE_SOURCES_DEPENDENCIES} 203 ${ORTHANC_CORE_SOURCES_DEPENDENCIES}
202 ${ORTHANC_CORE_SOURCES_INTERNAL} 204 ${ORTHANC_CORE_SOURCES_INTERNAL}
203 ${ORTHANC_DICOM_SOURCES_DEPENDENCIES} 205 ${ORTHANC_DICOM_SOURCES_DEPENDENCIES}
204 ${ORTHANC_DICOM_SOURCES_INTERNAL} 206 ${ORTHANC_DICOM_SOURCES_INTERNAL}
205 ${ORTHANC_STL_SOURCES} 207 ${ORTHANC_STL_SOURCES}
208 ${NIFTILIB_SOURCES}
206 ) 209 )
207 210
208 DefineSourceBasenameForTarget(OrthancSTL) 211 DefineSourceBasenameForTarget(OrthancSTL)
209 212
210 add_dependencies(OrthancSTL AutogeneratedTarget VTK) 213 add_dependencies(OrthancSTL AutogeneratedTarget VTK)