Mercurial > hg > orthanc
annotate OrthancServer/Plugins/Samples/Common/OrthancPlugins.cmake @ 5640:f7adfb22e20e
updated copyright, as Orthanc Team now replaces Osimis
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 30 May 2024 21:19:57 +0200 |
parents | 48b8dae6dc77 |
children |
rev | line source |
---|---|
4123
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
1 # Orthanc - A Lightweight, RESTful DICOM Store |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
3 # Department, University Hospital of Liege, Belgium |
5640
f7adfb22e20e
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5485
diff
changeset
|
4 # Copyright (C) 2017-2023 Osimis S.A., Belgium |
f7adfb22e20e
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5485
diff
changeset
|
5 # Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
5485
48b8dae6dc77
upgrade to year 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
5185
diff
changeset
|
6 # Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
4123
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
7 # |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
8 # This program is free software: you can redistribute it and/or |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
9 # modify it under the terms of the GNU General Public License as |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
10 # published by the Free Software Foundation, either version 3 of the |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
11 # License, or (at your option) any later version. |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
12 # |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
13 # This program is distributed in the hope that it will be useful, but |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
14 # WITHOUT ANY WARRANTY; without even the implied warranty of |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
16 # General Public License for more details. |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
17 # |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
18 # You should have received a copy of the GNU General Public License |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
19 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
20 |
3d6ee570cfb2
adding missing licenses to sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4099
diff
changeset
|
21 |
3373
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
22 include(CheckIncludeFiles) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
23 include(CheckIncludeFileCXX) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
24 include(CheckLibraryExists) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
25 include(FindPythonInterp) |
4050 | 26 include(${CMAKE_CURRENT_LIST_DIR}/../../../../OrthancFramework/Resources/CMake/AutoGeneratedCode.cmake) |
27 include(${CMAKE_CURRENT_LIST_DIR}/../../../../OrthancFramework/Resources/CMake/DownloadPackage.cmake) | |
28 include(${CMAKE_CURRENT_LIST_DIR}/../../../../OrthancFramework/Resources/CMake/Compiler.cmake) | |
4099
bf1a17f12306
moving version scripts from OrthancFramework to OrthancServer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4050
diff
changeset
|
29 include(${CMAKE_CURRENT_LIST_DIR}/OrthancPluginsExports.cmake) |
3373
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
30 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
31 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
32 if (CMAKE_COMPILER_IS_GNUCXX) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
33 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic") |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
34 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
35 endif() |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
36 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
37 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
38 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
39 # Linking with "pthread" is necessary, otherwise the software crashes |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
40 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
41 link_libraries(dl rt pthread) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
42 endif() |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
43 |
4050 | 44 include_directories(${CMAKE_CURRENT_LIST_DIR}/../../Include/) |
3373
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
45 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
46 if (MSVC) |
3572
6fbc2f97de3a
Fixed sample plugin cmake files for newer VS versions
Benjamin Golinvaux <bgo@osimis.io>
parents:
3373
diff
changeset
|
47 if (MSVC_VERSION LESS 1600) |
6fbc2f97de3a
Fixed sample plugin cmake files for newer VS versions
Benjamin Golinvaux <bgo@osimis.io>
parents:
3373
diff
changeset
|
48 # Starting with Visual Studio >= 2010 (i.e. macro _MSC_VER >= |
6fbc2f97de3a
Fixed sample plugin cmake files for newer VS versions
Benjamin Golinvaux <bgo@osimis.io>
parents:
3373
diff
changeset
|
49 # 1600), Microsoft ships a standard-compliant <stdint.h> |
6fbc2f97de3a
Fixed sample plugin cmake files for newer VS versions
Benjamin Golinvaux <bgo@osimis.io>
parents:
3373
diff
changeset
|
50 # header. For earlier versions of Visual Studio, give access to a |
6fbc2f97de3a
Fixed sample plugin cmake files for newer VS versions
Benjamin Golinvaux <bgo@osimis.io>
parents:
3373
diff
changeset
|
51 # compatibility header. |
6fbc2f97de3a
Fixed sample plugin cmake files for newer VS versions
Benjamin Golinvaux <bgo@osimis.io>
parents:
3373
diff
changeset
|
52 # http://stackoverflow.com/a/70630/881731 |
6fbc2f97de3a
Fixed sample plugin cmake files for newer VS versions
Benjamin Golinvaux <bgo@osimis.io>
parents:
3373
diff
changeset
|
53 # https://en.wikibooks.org/wiki/C_Programming/C_Reference/stdint.h#External_links |
4050 | 54 include_directories(${CMAKE_CURRENT_LIST_DIR}/../../../../OrthancFramework/Resources/ThirdParty/VisualStudio/) |
3572
6fbc2f97de3a
Fixed sample plugin cmake files for newer VS versions
Benjamin Golinvaux <bgo@osimis.io>
parents:
3373
diff
changeset
|
55 endif() |
3373
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
56 endif() |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
57 |
4050 | 58 add_definitions( |
59 -DHAS_ORTHANC_EXCEPTION=0 | |
60 -DORTHANC_BUILDING_FRAMEWORK_LIBRARY=0 | |
61 ) |