Mercurial > hg > orthanc-webviewer
comparison CMakeLists.txt @ 274:52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 08:57:14 +0200 |
parents | 2c3555b8eabc |
children | 3a9749b1dfce |
comparison
equal
deleted
inserted
replaced
273:ae2049a3616a | 274:52b56343d268 |
---|---|
46 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") | 46 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") |
47 set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked") | 47 set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked") |
48 mark_as_advanced(ORTHANC_FRAMEWORK_STATIC) | 48 mark_as_advanced(ORTHANC_FRAMEWORK_STATIC) |
49 | 49 |
50 | 50 |
51 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | |
52 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR | |
53 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR | |
54 ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") | |
55 set(ENABLE_PLUGINS_VERSION_SCRIPT OFF) | |
56 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/VersionScriptPlugins.map") | |
57 endif() | |
58 | |
59 | |
60 # Download and setup the Orthanc framework | 51 # Download and setup the Orthanc framework |
61 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") | 52 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") |
62 set(ENABLE_GOOGLE_TEST ON) | 53 set(ENABLE_GOOGLE_TEST ON) |
63 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) | 54 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) |
64 | 55 |
81 include_directories(${ORTHANC_FRAMEWORK_ROOT}/Sources) | 72 include_directories(${ORTHANC_FRAMEWORK_ROOT}/Sources) |
82 endif() | 73 endif() |
83 | 74 |
84 | 75 |
85 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake) | 76 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake) |
77 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/OrthancPluginsExports.cmake) | |
86 | 78 |
87 | 79 |
88 # Check that the Orthanc SDK headers are available | 80 # Check that the Orthanc SDK headers are available |
89 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) | 81 if (STATIC_BUILD OR NOT USE_SYSTEM_ORTHANC_SDK) |
90 include_directories(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-0.9.5) | 82 include_directories(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Sdk-0.9.5) |