Mercurial > hg > orthanc-webviewer
annotate Resources/Orthanc/Plugins/OrthancPluginsExports.cmake @ 321:705be6d59d9b default tip
fix build on tumbleweed
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Jun 2024 12:57:30 +0200 |
parents | 553fa466835a |
children |
rev | line source |
---|---|
281 | 1 # Orthanc - A Lightweight, RESTful DICOM Store |
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
3 # Department, University Hospital of Liege, Belgium | |
320
553fa466835a
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
314
diff
changeset
|
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium |
553fa466835a
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
314
diff
changeset
|
5 # Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
314
0a1ad7492050
update year to 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
309
diff
changeset
|
6 # Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
281 | 7 # |
8 # This program is free software: you can redistribute it and/or | |
9 # modify it under the terms of the GNU General Public License as | |
10 # published by the Free Software Foundation, either version 3 of the | |
11 # License, or (at your option) any later version. | |
12 # | |
13 # This program is distributed in the hope that it will be useful, but | |
14 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 # General Public License for more details. | |
17 # | |
18 # You should have received a copy of the GNU General Public License | |
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 | |
21 | |
274
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 # 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
|
23 # "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
|
24 # "ENABLE_PLUGINS_VERSION_SCRIPT" in CMake |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 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
|
31 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") |
52b56343d268
using OrthancServer/Plugins/Samples/Common/OrthancPluginsExports.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 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
|
33 endif() |