comparison Applications/StoneWebViewer/Plugin/CMakeLists.txt @ 1545:aee0f5f9cf71

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Aug 2020 15:07:30 +0200
parents 8ddf77198ed7
children 65eccce95882
comparison
equal deleted inserted replaced
1544:8ddf77198ed7 1545:aee0f5f9cf71
30 set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked") 30 set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked")
31 mark_as_advanced(ORTHANC_FRAMEWORK_STATIC) 31 mark_as_advanced(ORTHANC_FRAMEWORK_STATIC)
32 32
33 33
34 # Download and setup the Orthanc framework 34 # Download and setup the Orthanc framework
35 include(${CMAKE_SOURCE_DIR}/../../OrthancStone/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) 35 include(${CMAKE_SOURCE_DIR}/../../../OrthancStone/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
36 36
37 include_directories(${ORTHANC_FRAMEWORK_ROOT}) 37 include_directories(${ORTHANC_FRAMEWORK_ROOT})
38 38
39 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") 39 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
40 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) 40 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES})
45 set(ENABLE_MODULE_JOBS OFF) 45 set(ENABLE_MODULE_JOBS OFF)
46 set(ENABLE_MODULE_DICOM OFF) 46 set(ENABLE_MODULE_DICOM OFF)
47 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake) 47 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake)
48 endif() 48 endif()
49 49
50 include(${CMAKE_SOURCE_DIR}/../Resources/Orthanc/Plugins/OrthancPluginsExports.cmake) 50 include(${CMAKE_SOURCE_DIR}/../../Resources/Orthanc/Plugins/OrthancPluginsExports.cmake)
51 51
52 52
53 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) 53 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK)
54 include_directories(${CMAKE_SOURCE_DIR}/../../Resources/Orthanc/Sdk-1.0.0) 54 include_directories(${CMAKE_SOURCE_DIR}/../../Resources/Orthanc/Sdk-1.0.0)
55 else () 55 else ()
80 ) 80 )
81 81
82 add_library(StoneWebViewer SHARED 82 add_library(StoneWebViewer SHARED
83 Plugin.cpp 83 Plugin.cpp
84 ${AUTOGENERATED_SOURCES} 84 ${AUTOGENERATED_SOURCES}
85 ${CMAKE_SOURCE_DIR}/../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp 85 ${CMAKE_SOURCE_DIR}/../../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.cpp
86 ${ORTHANC_CORE_SOURCES} 86 ${ORTHANC_CORE_SOURCES}
87 ) 87 )
88 88
89 set_target_properties(StoneWebViewer PROPERTIES 89 set_target_properties(StoneWebViewer PROPERTIES
90 VERSION ${ORTHANC_PLUGIN_VERSION} 90 VERSION ${ORTHANC_PLUGIN_VERSION}