Mercurial > hg > orthanc
annotate OrthancFramework/SharedLibrary/CMakeLists.txt @ 4128:27f0eafd40fe
making framework-lgpl the new mainline
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jul 2020 20:31:54 +0200 |
parents | 304842a0d152 |
children | 2c54cc9a712f |
rev | line source |
---|---|
4120
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
1 # Orthanc - A Lightweight, RESTful DICOM Store |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
2 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
3 # Department, University Hospital of Liege, Belgium |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
4 # Copyright (C) 2017-2020 Osimis S.A., Belgium |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
5 # |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
6 # This program is free software: you can redistribute it and/or |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
7 # modify it under the terms of the GNU Lesser General Public License |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
8 # as published by the Free Software Foundation, either version 3 of |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
9 # the License, or (at your option) any later version. |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
10 # |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
11 # This program is distributed in the hope that it will be useful, but |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
12 # WITHOUT ANY WARRANTY; without even the implied warranty of |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
14 # Lesser General Public License for more details. |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
15 # |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
16 # You should have received a copy of the GNU Lesser General Public |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
17 # License along with this program. If not, see |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
18 # <http://www.gnu.org/licenses/>. |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
19 |
304842a0d152
adding missing license headers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4118
diff
changeset
|
20 |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 ## To see all the exported symbols in the DLL: |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 ## |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 ## $ i686-w64-mingw32-objdump -p ./libOrthancFramework.dll |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 ## |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 ## IMPORTANT: "-static-libgcc" prevents catching exception in the |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 ## .EXE, which makes throwing exceptions crash the software! |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 ## |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 cmake_minimum_required(VERSION 2.8) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 project(OrthancFramework) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
34 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
35 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
36 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
37 ## Additional parameters |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
38 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
39 |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 # *Do not* use CMAKE_INSTALL_PREFIX, otherwise CMake automatically |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
41 # adds CMAKE_INSTALL_PREFIX to the include_directories(), which causes |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
42 # issues if re-building the shared library after install! |
4103
c5efe8897da8
rename ORTHANC_INSTALL_DIR as ORTHANC_INSTALL_PREFIX for more consistency with CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4100
diff
changeset
|
43 set(ORTHANC_INSTALL_PREFIX "/tmp/install" CACHE PATH "") |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
44 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
45 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
46 |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
47 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
48 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
49 ## Configuration of the Orthanc framework |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
50 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
51 |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 # This must be before inclusion of "OrthancFrameworkParameters.cmake" to take effect |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 if (CMAKE_SYSTEM_NAME STREQUAL "Windows" AND |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 CMAKE_COMPILER_IS_GNUCXX) # MinGW |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
55 set(DYNAMIC_MINGW_STDLIB ON) # Disable static linking against libc (to throw exceptions) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
56 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
57 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
58 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
59 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/OrthancFrameworkParameters.cmake) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
60 |
4094
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
61 if (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK) |
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
62 set(STANDALONE_BUILD ON) |
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
63 else() |
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
64 set(STANDALONE_BUILD OFF) |
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
65 endif() |
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
66 |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
67 set(ENABLE_DCMTK ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
68 set(ENABLE_DCMTK_TRANSCODING ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
69 set(ENABLE_GOOGLE_TEST ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
70 set(ENABLE_JPEG ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
71 set(ENABLE_LOCALE ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
72 set(ENABLE_LUA ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
73 set(ENABLE_PNG ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
74 set(ENABLE_PUGIXML ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
75 set(ENABLE_ZLIB ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
76 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
77 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
78 # WebAssembly or asm.js |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
79 set(BOOST_LOCALE_BACKEND "libiconv") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
80 set(ORTHANC_SANDBOXED ON) |
4071
d6b7fb0f9652
improved DownloadOrthancFramework.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4067
diff
changeset
|
81 set(STANDALONE_BUILD ON) |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
82 |
4067 | 83 # Will be used by "../Resources/CMake/EmscriptenParameters.cmake" |
84 set(WASM_FLAGS "-s SIDE_MODULE=1 -s EXPORT_ALL=1") | |
85 | |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
86 else() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
87 # Enable all the remaining modules for other targets |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
88 set(ENABLE_CRYPTO_OPTIONS ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
89 set(ENABLE_DCMTK_NETWORKING ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
90 set(ENABLE_OPENSSL_ENGINES ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
91 set(ENABLE_SQLITE ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
92 set(ENABLE_WEB_CLIENT ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
93 set(ENABLE_WEB_SERVER ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
94 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
95 set(BOOST_LOCALE_BACKEND "icu") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
96 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
97 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
98 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
99 set(ORTHANC_BUILDING_FRAMEWORK_LIBRARY ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
100 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
101 include(${CMAKE_SOURCE_DIR}/../Resources/CMake/OrthancFrameworkConfiguration.cmake) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
102 |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
103 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
104 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
105 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
106 ## Configuration the visibility of the third-party libraries in the |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
107 ## shared library |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
108 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
109 |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
110 if (STATIC_BUILD OR NOT USE_SYSTEM_JSONCPP) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
111 set(ORTHANC_STATIC_JSONCPP ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
112 else() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
113 set(ORTHANC_STATIC_JSONCPP OFF) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
114 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
115 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
116 if (STATIC_BUILD OR NOT USE_SYSTEM_BOOST) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
117 set(ORTHANC_STATIC_BOOST ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
118 else() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
119 set(ORTHANC_STATIC_BOOST OFF) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
120 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
121 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
122 if (STATIC_BUILD OR NOT USE_SYSTEM_SQLITE) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
123 set(ORTHANC_STATIC_SQLITE ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
124 else() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
125 set(ORTHANC_STATIC_SQLITE OFF) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
126 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
127 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
128 if (STATIC_BUILD OR NOT USE_SYSTEM_PUGIXML) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
129 set(ORTHANC_STATIC_PUGIXML ON) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
130 else() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
131 set(ORTHANC_STATIC_PUGIXML OFF) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
132 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
133 |
4065
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
134 if (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK) |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
135 set(ORTHANC_STATIC_DCMTK ON) |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
136 else() |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
137 set(ORTHANC_STATIC_DCMTK OFF) |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
138 endif() |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
139 |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
140 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
141 if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
142 CMAKE_CXX_COMPILER_ID STREQUAL "GNU") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
143 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
144 # Control the visibility of JsonCpp |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
145 if (ORTHANC_STATIC_JSONCPP) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
146 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
147 set_source_files_properties(${JSONCPP_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
148 PROPERTIES COMPILE_DEFINITIONS "JSON_API=__declspec(dllexport)" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
149 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
150 set(ORTHANC_JSON_API "__declspec(dllimport)") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
151 else() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
152 set(ORTHANC_JSON_API "__attribute__((visibility(\"default\")))") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
153 set_source_files_properties(${JSONCPP_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
154 PROPERTIES COMPILE_DEFINITIONS "JSON_API=${ORTHANC_JSON_API}" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
155 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
156 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
157 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
158 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
159 # Control the visibility of SQLite |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
160 if (ORTHANC_STATIC_SQLITE) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
161 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
162 set_source_files_properties(${SQLITE_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
163 PROPERTIES COMPILE_DEFINITIONS "SQLITE_API=__declspec(dllexport)" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
164 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
165 set(ORTHANC_SQLITE_API "__declspec(dllimport)") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
166 else() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
167 set(ORTHANC_SQLITE_API "__attribute__((visibility(\"default\")))") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
168 set_source_files_properties(${SQLITE_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
169 PROPERTIES COMPILE_DEFINITIONS "SQLITE_API=${ORTHANC_SQLITE_API}" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
170 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
171 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
172 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
173 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
174 # Control the visibility of Boost |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
175 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
176 ORTHANC_STATIC_BOOST) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
177 set_source_files_properties(${ORTHANC_CORE_SOURCES_INTERNAL} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
178 PROPERTIES COMPILE_DEFINITIONS "BOOST_DATE_TIME_SOURCE;BOOST_FILESYSTEM_SOURCE;BOOST_LOCALE_SOURCE;BOOST_REGEX_SOURCE" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
179 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
180 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
181 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
182 # Control the visibility of Pugixml |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
183 if (ORTHANC_STATIC_PUGIXML) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
184 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
185 set_source_files_properties(${PUGIXML_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
186 PROPERTIES COMPILE_DEFINITIONS "PUGIXML_API=__declspec(dllexport)" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
187 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
188 set(ORTHANC_PUGIXML_API "__declspec(dllimport)") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
189 else() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
190 set(ORTHANC_PUGIXML_API "__attribute__((visibility(\"default\")))") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
191 set_source_files_properties(${PUGIXML_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
192 PROPERTIES COMPILE_DEFINITIONS "PUGIXML_API=${ORTHANC_PUGIXML_API}" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
193 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
194 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
195 endif() |
4065
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
196 |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
197 # Control the visibility of DCMTK: We only export the "dcmdata" module |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
198 if (ORTHANC_STATIC_DCMTK) |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
199 set_source_files_properties(${DCMTK_SOURCES} |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
200 PROPERTIES COMPILE_DEFINITIONS "DCMTK_BUILD_IN_PROGRESS;DCMTK_BUILD_SINGLE_SHARED_LIBRARY;DCMTK_SHARED;HAVE_HIDDEN_VISIBILITY;dcmdata_EXPORTS" |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
201 ) |
d6362b2c4b61
export dcmdata in shared library, rounding in convolution tests
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4063
diff
changeset
|
202 endif() |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
203 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
204 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
205 |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
206 add_definitions( |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
207 -DCIVETWEB_API= # Don't export the public symbols from CivetWeb |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
208 ) |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
209 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
210 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
211 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
212 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
213 ## Building the shared library |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
214 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
215 |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
216 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
217 execute_process( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
218 COMMAND |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
219 ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/../Resources/WindowsResources.py |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
220 ${ORTHANC_VERSION} "OrthancFramework" OrthancFramework.dll "Shared library containing the Orthanc framework" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
221 ERROR_VARIABLE Failure |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
222 OUTPUT_FILE ${AUTOGENERATED_DIR}/Version.rc |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
223 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
224 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
225 if (Failure) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
226 message(FATAL_ERROR "Error while computing the version information: ${Failure}") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
227 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
228 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
229 list(APPEND AUTOGENERATED_SOURCES ${AUTOGENERATED_DIR}/Version.rc) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
230 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
231 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
232 |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
233 # Those two files collide with each other, and thus are merged into a |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
234 # single "DllMain.cpp" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
235 list(REMOVE_ITEM ORTHANC_CORE_SOURCES |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
236 ${BOOST_SOURCES_DIR}/libs/thread/src/win32/tss_dll.cpp |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
237 ${OPENSSL_SOURCES_DIR}/crypto/dllmain.c |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
238 ) |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
239 |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
240 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
241 # In WebAssembly, a SIDE_MODULE is an executable |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
242 add_executable(OrthancFramework |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
243 ${AUTOGENERATED_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
244 ${ORTHANC_CORE_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
245 ${ORTHANC_DICOM_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
246 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
247 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
248 # CMake does not natively handle SIDE_MODULE, and believes that |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
249 # Emscripten produces a ".js" file (whereas it creates only the |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
250 # ".wasm"). Create a dummy ".js" for target to work. |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
251 add_custom_command( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
252 TARGET OrthancFramework POST_BUILD |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
253 COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/OrthancFramework.js |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
254 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
255 else() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
256 add_library(OrthancFramework SHARED |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
257 ${AUTOGENERATED_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
258 ${ORTHANC_CORE_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
259 ${ORTHANC_DICOM_SOURCES} |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
260 DllMain.cpp |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
261 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
262 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
263 |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
264 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
265 if (NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten") |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
266 # By default, hide all the symbols |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
267 set_target_properties(OrthancFramework PROPERTIES C_VISIBILITY_PRESET hidden) |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
268 set_target_properties(OrthancFramework PROPERTIES CXX_VISIBILITY_PRESET hidden) |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
269 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
270 # Configure the version of the shared library |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
271 set_target_properties( |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
272 OrthancFramework PROPERTIES |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
273 VERSION ${ORTHANC_VERSION} |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
274 SOVERSION ${ORTHANC_VERSION} |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
275 ) |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
276 endif() |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
277 |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
278 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
279 target_link_libraries(OrthancFramework ${DCMTK_LIBRARIES}) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
280 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
281 if (LIBICU_LIBRARIES) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
282 target_link_libraries(OrthancFramework ${LIBICU_LIBRARIES}) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
283 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
284 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
285 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
286 target_link_libraries(OrthancFramework winpthread) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
287 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
288 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
289 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
290 |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
291 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
292 ## Publish the headers into the "Include" folder of the build |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
293 ## directory |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
294 ##################################################################### |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
295 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
296 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
297 COPY ${CMAKE_SOURCE_DIR}/../Sources/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
298 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/orthanc-framework |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
299 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
300 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
301 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
302 PATTERN OrthancFramework.h EXCLUDE |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
303 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
304 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
305 configure_file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
306 ${CMAKE_SOURCE_DIR}/OrthancFramework.h.in |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
307 ${CMAKE_CURRENT_BINARY_DIR}/Include/orthanc-framework/OrthancFramework.h |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
308 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
309 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
310 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
311 if (ORTHANC_STATIC_BOOST) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
312 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
313 COPY ${BOOST_SOURCES_DIR}/boost/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
314 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/boost/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
315 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
316 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
317 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
318 PATTERN "*.hpp" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
319 PATTERN "*.ipp" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
320 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
321 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
322 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
323 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
324 if (ENABLE_SQLITE AND ORTHANC_STATIC_SQLITE) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
325 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
326 COPY ${SQLITE_SOURCES_DIR}/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
327 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
328 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
329 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
330 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
331 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
332 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
333 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
334 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
335 if (ORTHANC_STATIC_JSONCPP) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
336 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
337 COPY ${JSONCPP_SOURCES_DIR}/include/json/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
338 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/json/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
339 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
340 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
341 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
342 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
343 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
344 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
345 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
346 if (ENABLE_DCMTK AND (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK)) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
347 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
348 COPY ${DCMTK_SOURCES_DIR}/dcmdata/include/dcmtk/dcmdata/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
349 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/dcmtk/dcmdata/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
350 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
351 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
352 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
353 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
354 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
355 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
356 COPY ${DCMTK_SOURCES_DIR}/config/include/dcmtk/config/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
357 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/dcmtk/config/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
358 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
359 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
360 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
361 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
362 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
363 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
364 COPY ${DCMTK_SOURCES_DIR}/ofstd/include/dcmtk/ofstd/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
365 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/dcmtk/ofstd/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
366 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
367 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
368 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
369 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
370 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
371 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
372 COPY ${DCMTK_SOURCES_DIR}/oflog/include/dcmtk/oflog/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
373 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/dcmtk/oflog/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
374 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
375 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
376 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
377 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
378 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
379 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
380 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
381 if (ENABLE_PUGIXML AND (STATIC_BUILD OR NOT USE_SYSTEM_PUGIXML)) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
382 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
383 COPY ${PUGIXML_SOURCES_DIR}/src/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
384 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
385 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
386 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
387 PATTERN "*.hpp" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
388 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
389 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
390 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
391 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
392 if (ENABLE_LUA AND (STATIC_BUILD OR NOT USE_SYSTEM_LUA)) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
393 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
394 COPY ${LUA_SOURCES_DIR}/src/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
395 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
396 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
397 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
398 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
399 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
400 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
401 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
402 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
403 if (OFF) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
404 # These files are fully abstracted by the Orthanc Framework classes |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
405 if (ENABLE_PNG AND (STATIC_BUILD OR NOT USE_SYSTEM_LIBPNG)) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
406 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
407 COPY ${LIBPNG_SOURCES_DIR}/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
408 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
409 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
410 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
411 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
412 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
413 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
414 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
415 if (ENABLE_ZLIB AND (STATIC_BUILD OR NOT USE_SYSTEM_ZLIB)) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
416 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
417 COPY ${ZLIB_SOURCES_DIR}/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
418 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
419 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
420 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
421 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
422 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
423 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
424 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
425 if (ENABLE_JPEG AND (STATIC_BUILD OR NOT USE_SYSTEM_LIBJPEG)) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
426 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
427 COPY ${LIBJPEG_SOURCES_DIR}/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
428 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
429 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
430 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
431 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
432 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
433 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
434 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
435 if (ENABLE_WEB_CLIENT AND (STATIC_BUILD OR NOT USE_SYSTEM_CURL)) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
436 file( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
437 COPY ${CURL_SOURCES_DIR}/include/curl/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
438 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/Include/curl/ |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
439 NO_SOURCE_PERMISSIONS |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
440 FILES_MATCHING |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
441 PATTERN "*.h" |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
442 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
443 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
444 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
445 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
446 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
447 |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
448 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
449 ## Possibly install the headers and the binaries |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
450 ##################################################################### |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
451 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
452 install( |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
453 TARGETS OrthancFramework |
4103
c5efe8897da8
rename ORTHANC_INSTALL_DIR as ORTHANC_INSTALL_PREFIX for more consistency with CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4100
diff
changeset
|
454 RUNTIME DESTINATION ${ORTHANC_INSTALL_PREFIX}/lib # Destination for Windows |
c5efe8897da8
rename ORTHANC_INSTALL_DIR as ORTHANC_INSTALL_PREFIX for more consistency with CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4100
diff
changeset
|
455 LIBRARY DESTINATION ${ORTHANC_INSTALL_PREFIX}/lib # Destination for Linux |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
456 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
457 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
458 if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
459 install(FILES |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
460 ${CMAKE_CURRENT_BINARY_DIR}/OrthancFramework.wasm |
4103
c5efe8897da8
rename ORTHANC_INSTALL_DIR as ORTHANC_INSTALL_PREFIX for more consistency with CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4100
diff
changeset
|
461 DESTINATION ${ORTHANC_INSTALL_PREFIX}/lib |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
462 ) |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
463 endif() |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
464 |
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
465 install( |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
466 DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Include/ |
4103
c5efe8897da8
rename ORTHANC_INSTALL_DIR as ORTHANC_INSTALL_PREFIX for more consistency with CMake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4100
diff
changeset
|
467 DESTINATION ${ORTHANC_INSTALL_PREFIX}/include/ |
4063
e00f3d089991
shared library of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
468 ) |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
469 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
470 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
471 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
472 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
473 ## Compile the unit tests |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
474 ##################################################################### |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
475 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
476 if (NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten") |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
477 include(ExternalProject) |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
478 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
479 if (CMAKE_TOOLCHAIN_FILE) |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
480 # Take absolute path to the toolchain |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
481 get_filename_component(TMP ${CMAKE_TOOLCHAIN_FILE} REALPATH BASE ${CMAKE_SOURCE_DIR}/..) |
4097
99e2054d1e8d
fix unit tests for orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4094
diff
changeset
|
482 list(APPEND Flags |
99e2054d1e8d
fix unit tests for orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4094
diff
changeset
|
483 -DCMAKE_TOOLCHAIN_FILE=${TMP} |
99e2054d1e8d
fix unit tests for orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4094
diff
changeset
|
484 -DLSB_CC=${LSB_CC} |
99e2054d1e8d
fix unit tests for orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4094
diff
changeset
|
485 -DLSB_CXX=${LSB_CXX} |
99e2054d1e8d
fix unit tests for orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4094
diff
changeset
|
486 ) |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
487 endif() |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
488 |
4117
9286649df279
use of C++11 in the unit tests of the shared library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4107
diff
changeset
|
489 if (JSONCPP_CXX11) |
9286649df279
use of C++11 in the unit tests of the shared library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4107
diff
changeset
|
490 list(APPEND Flags -DUSE_CXX11=1) |
9286649df279
use of C++11 in the unit tests of the shared library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4107
diff
changeset
|
491 endif() |
9286649df279
use of C++11 in the unit tests of the shared library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4107
diff
changeset
|
492 |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
493 # Build the unit tests, linking them against the just-created |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
494 # "OrthancFramework" library |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
495 externalproject_add(UnitTests |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
496 SOURCE_DIR "${CMAKE_SOURCE_DIR}/../UnitTestsSources" |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
497 CMAKE_ARGS |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
498 -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
499 -DORTHANC_FRAMEWORK_LIBDIR:PATH=${CMAKE_CURRENT_BINARY_DIR} |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
500 -DORTHANC_FRAMEWORK_ROOT:PATH=${CMAKE_CURRENT_BINARY_DIR}/Include/orthanc-framework |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
501 -DORTHANC_FRAMEWORK_SOURCE:STRING=system |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
502 -DORTHANC_FRAMEWORK_STATIC:BOOL=${STATIC_BUILD} |
4094
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
503 |
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
504 -DALLOW_DOWNLOADS:BOOL=${ALLOW_DOWNLOADS} |
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
505 -DSTATIC_BUILD:BOOL=${STATIC_BUILD} |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
506 -DUNIT_TESTS_WITH_HTTP_CONNEXIONS:BOOL=${UNIT_TESTS_WITH_HTTP_CONNEXIONS} |
4094
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
507 -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE:BOOL=${USE_GOOGLE_TEST_DEBIAN_PACKAGE} |
1c89208fbba9
fix build of orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4071
diff
changeset
|
508 -DUSE_SYSTEM_GOOGLE_TEST:BOOL=${USE_SYSTEM_GOOGLE_TEST} |
4118
a0c30785b7d7
simplifying OrthancFramework/SharedLibrary/CMakeLists.txt
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4117
diff
changeset
|
509 |
4066
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
510 ${Flags} |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
511 ) |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
512 |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
513 add_dependencies(UnitTests OrthancFramework) |
3a59a021b5de
build instructions for the library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4065
diff
changeset
|
514 endif() |
4107
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
515 |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
516 |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
517 |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
518 ##################################################################### |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
519 ## Prepare the "uninstall" target |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
520 ## http://www.cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
521 ##################################################################### |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
522 |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
523 configure_file( |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
524 "${CMAKE_SOURCE_DIR}/../Resources/CMake/Uninstall.cmake.in" |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
525 "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
526 IMMEDIATE @ONLY) |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
527 |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
528 add_custom_target(uninstall |
d36b38da5947
uninstall target for the orthanc framework
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4103
diff
changeset
|
529 COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) |