Mercurial > hg > orthanc-webviewer
annotate Resources/Orthanc/Plugins/OrthancPluginsExports.cmake @ 280:b470cb408d7e
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 21:28:52 +0200 |
parents | 52b56343d268 |
children | b004474eeb66 |
rev | line source |
---|---|
274
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 # In Orthanc <= 1.7.1, the instructions below were part of |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 # "Compiler.cmake", and were protected by the (now unused) option |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 # "ENABLE_PLUGINS_VERSION_SCRIPT" in CMake |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/VersionScriptPlugins.map") |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -exported_symbols_list ${CMAKE_CURRENT_LIST_DIR}/ExportedSymbolsPlugins.list") |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 endif() |