annotate Resources/Orthanc/Plugins/OrthancPluginsExports.cmake @ 32:3bd0ec7c5a7c

upgrade to year 2021
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Jan 2021 17:58:24 +0100
parents b7e32fe4973b
children 1256194e1c08
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
1 # Orthanc - A Lightweight, RESTful DICOM Store
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
3 # Department, University Hospital of Liege, Belgium
32
3bd0ec7c5a7c upgrade to year 2021
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 28
diff changeset
4 # Copyright (C) 2017-2021 Osimis S.A., Belgium
28
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
5 #
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
6 # This program is free software: you can redistribute it and/or
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
7 # modify it under the terms of the GNU General Public License as
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
8 # published by the Free Software Foundation, either version 3 of the
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
9 # License, or (at your option) any later version.
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
10 #
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
11 # This program is distributed in the hope that it will be useful, but
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
14 # General Public License for more details.
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
15 #
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
16 # You should have received a copy of the GNU General Public License
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
18
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
19
24
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 # In Orthanc <= 1.7.1, the instructions below were part of
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 # "Compiler.cmake", and were protected by the (now unused) option
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 # "ENABLE_PLUGINS_VERSION_SCRIPT" in CMake
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/VersionScriptPlugins.map")
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -exported_symbols_list ${CMAKE_CURRENT_LIST_DIR}/ExportedSymbolsPlugins.list")
065bc476bcdc use of OrthancPluginsExports.cmake, link against system-wide orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 endif()