Mercurial > hg > orthanc-stone
comparison Applications/Resources/Orthanc/Plugins/OrthancPluginsExports.cmake @ 1538:d1806b4e4839
moving OrthancStone/Samples/ as Applications/Samples/
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Aug 2020 13:24:38 +0200 |
parents | |
children | f9e3a9c21c0f |
comparison
equal
deleted
inserted
replaced
1537:de8cf5859e84 | 1538:d1806b4e4839 |
---|---|
1 # Orthanc - A Lightweight, RESTful DICOM Store | |
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
3 # Department, University Hospital of Liege, Belgium | |
4 # Copyright (C) 2017-2020 Osimis S.A., Belgium | |
5 # | |
6 # This program is free software: you can redistribute it and/or | |
7 # modify it under the terms of the GNU General Public License as | |
8 # published by the Free Software Foundation, either version 3 of the | |
9 # License, or (at your option) any later version. | |
10 # | |
11 # This program is distributed in the hope that it will be useful, but | |
12 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 # General Public License for more details. | |
15 # | |
16 # You should have received a copy of the GNU General Public License | |
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | |
19 | |
20 # In Orthanc <= 1.7.1, the instructions below were part of | |
21 # "Compiler.cmake", and were protected by the (now unused) option | |
22 # "ENABLE_PLUGINS_VERSION_SCRIPT" in CMake | |
23 | |
24 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | |
25 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR | |
26 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR | |
27 ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") | |
28 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/VersionScriptPlugins.map") | |
29 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") | |
30 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -exported_symbols_list ${CMAKE_CURRENT_LIST_DIR}/ExportedSymbolsPlugins.list") | |
31 endif() |