annotate CMakeLists.txt @ 48:0a04c70747d9

renaming
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Sep 2012 15:36:45 +0200
parents 042ac60f5bf9
children e0cac5540668
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
1 cmake_minimum_required(VERSION 2.8)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
2
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
3 project(Palanthir)
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
4 include(${CMAKE_SOURCE_DIR}/Resources/CMake/AutoGeneratedCode.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
5 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DownloadPackage.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
6 include(CheckIncludeFiles)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
7
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
8 SET(STATIC_BUILD ON CACHE BOOL "Static build of the third-party libraries (necessary for Windows)")
19
e85455ff6039 standalon
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 12
diff changeset
9 SET(STANDALONE_BUILD OFF CACHE BOOL "Standalone build (necessary for cross-compilation or binary releases)")
23
62bd05fe4b7c support for ssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 22
diff changeset
10 SET(ENABLE_SSL ON CACHE BOOL "Include support for SSL")
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
11
19
e85455ff6039 standalon
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 12
diff changeset
12 if (${CMAKE_CROSSCOMPILING})
e85455ff6039 standalon
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 12
diff changeset
13 SET(STANDALONE_BUILD ON)
e85455ff6039 standalon
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 12
diff changeset
14 endif()
e85455ff6039 standalon
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 12
diff changeset
15
e85455ff6039 standalon
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 12
diff changeset
16 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
17 CHECK_INCLUDE_FILES(rpc.h HAVE_UUID_H)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
18 else()
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
19 CHECK_INCLUDE_FILES(uuid/uuid.h HAVE_UUID_H)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
20 endif()
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
21
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
22 if ("${HAVE_UUID_H}" STREQUAL "")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
23 message(FATAL_ERROR "Please install the uuid-dev package")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
24 endif()
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
25
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
26
22
1bc6327d1de3 MD5 sum
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 19
diff changeset
27 SET(THIRD_PARTY_SOURCES
1bc6327d1de3 MD5 sum
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 19
diff changeset
28 ${CMAKE_SOURCE_DIR}/Resources/md5/md5.c
24
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 23
diff changeset
29 ${CMAKE_SOURCE_DIR}/Resources/base64/base64.cpp
22
1bc6327d1de3 MD5 sum
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 19
diff changeset
30 )
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
31
29
042ac60f5bf9 simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 26
diff changeset
32 if (${ENABLE_SSL})
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
33 add_definitions(-DPALANTHIR_SSL_ENABLED=1)
29
042ac60f5bf9 simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 26
diff changeset
34 include(${CMAKE_SOURCE_DIR}/Resources/CMake/OpenSslConfiguration.cmake)
042ac60f5bf9 simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 26
diff changeset
35 else()
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
36 add_definitions(-DPALANTHIR_SSL_ENABLED=0)
29
042ac60f5bf9 simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 26
diff changeset
37 endif()
042ac60f5bf9 simplified build of curl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 26
diff changeset
38
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
39 include(${CMAKE_SOURCE_DIR}/Resources/CMake/BoostConfiguration.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
40 include(${CMAKE_SOURCE_DIR}/Resources/CMake/DcmtkConfiguration.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
41 include(${CMAKE_SOURCE_DIR}/Resources/CMake/GoogleTestConfiguration.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
42 include(${CMAKE_SOURCE_DIR}/Resources/CMake/MongooseConfiguration.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
43 include(${CMAKE_SOURCE_DIR}/Resources/CMake/ZlibConfiguration.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
44 include(${CMAKE_SOURCE_DIR}/Resources/CMake/SQLiteConfiguration.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
45 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JsonCppConfiguration.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
46 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibCurlConfiguration.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
47 include(${CMAKE_SOURCE_DIR}/Resources/CMake/LibPngConfiguration.cmake)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
48
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
49
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
50 if (${CMAKE_COMPILER_IS_GNUCXX})
26
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
51 set(CMAKE_C_FLAGS "-Wall -Wno-long-long -Wno-implicit-function-declaration")
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
52 # --std=c99 makes libcurl not to compile
6ba765ecf3db compiling openssl
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 24
diff changeset
53 # -pedantic gives a lot of warnings on OpenSSL
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
54 set(CMAKE_CXX_FLAGS "-Wall -pedantic -Wno-long-long -Wno-variadic-macros")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
55 elseif (${MSVC})
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
56 # http://stackoverflow.com/a/6510446
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
57 foreach(flag_var
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
58 CMAKE_C_FLAGS_DEBUG
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
59 CMAKE_CXX_FLAGS_DEBUG
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
60 CMAKE_C_FLAGS_RELEASE
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
61 CMAKE_CXX_FLAGS_RELEASE
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
62 CMAKE_C_FLAGS_MINSIZEREL
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
63 CMAKE_CXX_FLAGS_MINSIZEREL
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
64 CMAKE_C_FLAGS_RELWITHDEBINFO
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
65 CMAKE_CXX_FLAGS_RELWITHDEBINFO)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
66 string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
67 string(REGEX REPLACE "/MDd" "/MTd" ${flag_var} "${${flag_var}}")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
68 endforeach(flag_var)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
69 add_definitions(
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
70 -D_CRT_SECURE_NO_WARNINGS=1
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
71 -D_CRT_SECURE_NO_DEPRECATE=1
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
72 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
73 include_directories(${CMAKE_SOURCE_DIR}/Resources/VisualStudio)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
74 link_libraries(netapi32)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
75 endif()
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
76
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
77
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
78 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
79 add_definitions(
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
80 -D_LARGEFILE64_SOURCE=1
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
81 -D_FILE_OFFSET_BITS=64
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
82 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
83 set(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
84 set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
85 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
86
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
87 # http://www.mail-archive.com/cmake@cmake.org/msg08837.html
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
88 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
89 link_libraries(uuid pthread rt)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
90
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
91 elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
92 add_definitions(
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
93 -DWINVER=0x0501
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
94 -D_CRT_SECURE_NO_WARNINGS=1
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
95 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
96 link_libraries(rpcrt4 ws2_32)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
97 endif()
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
98
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
99
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
100 if (${STATIC_BUILD})
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
101 add_definitions(-DPALANTHIR_STATIC=1)
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
102 else()
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
103 add_definitions(-DPALANTHIR_STATIC=0)
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
104 endif()
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
105
19
e85455ff6039 standalon
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 12
diff changeset
106 if (${STANDALONE_BUILD})
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
107 add_definitions(
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
108 -DPALANTHIR_STANDALONE=1
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
109 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
110
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
111 EmbedResources(
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
112 PREPARE_DATABASE PalanthirServer/PrepareDatabase.sql
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
113 PALANTHIR_EXPLORER PalanthirExplorer
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
114 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
115
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
116 else()
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
117 add_definitions(
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
118 -DPALANTHIR_STANDALONE=0
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
119 -DPALANTHIR_PATH=\"${CMAKE_SOURCE_DIR}\"
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
120 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
121
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
122 EmbedResources(
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
123 PREPARE_DATABASE PalanthirServer/PrepareDatabase.sql
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
124 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
125 endif()
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
126
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
127
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
128 add_library(CoreLibrary
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
129 STATIC
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
130 ${AUTOGENERATED_SOURCES}
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
131 ${THIRD_PARTY_SOURCES}
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
132
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
133 Core/ChunkedBuffer.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
134 Core/Compression/BufferCompressor.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
135 Core/Compression/ZlibCompressor.cpp
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
136 Core/PalanthirException.cpp
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
137 Core/DicomFormat/DicomArray.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
138 Core/DicomFormat/DicomMap.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
139 Core/DicomFormat/DicomTag.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
140 Core/FileStorage.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
141 Core/HttpServer/EmbeddedResourceHttpHandler.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
142 Core/HttpServer/FilesystemHttpHandler.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
143 Core/HttpServer/HttpHandler.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
144 Core/HttpServer/HttpOutput.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
145 Core/HttpServer/MongooseServer.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
146 Core/MultiThreading/BagOfRunnablesBySteps.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
147 Core/PngWriter.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
148 Core/SQLite/Connection.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
149 Core/SQLite/FunctionContext.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
150 Core/SQLite/Statement.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
151 Core/SQLite/StatementId.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
152 Core/SQLite/StatementReference.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
153 Core/SQLite/Transaction.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
154 Core/Toolbox.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
155 Core/Uuid.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
156
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
157 PalanthirCppClient/HttpClient.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
158 PalanthirCppClient/HttpException.cpp
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
159 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
160
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
161 add_library(ServerLibrary
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
162 PalanthirServer/DicomIntegerPixelAccessor.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
163 PalanthirServer/DicomProtocol/DicomFindAnswers.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
164 PalanthirServer/DicomProtocol/DicomServer.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
165 PalanthirServer/DicomProtocol/DicomUserConnection.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
166 PalanthirServer/FromDcmtkBridge.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
167 PalanthirServer/Internals/CommandDispatcher.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
168 PalanthirServer/Internals/FindScp.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
169 PalanthirServer/Internals/MoveScp.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
170 PalanthirServer/Internals/StoreScp.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
171 PalanthirServer/PalanthirInitialization.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
172 PalanthirServer/PalanthirRestApi.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
173 PalanthirServer/ServerIndex.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
174 PalanthirServer/ToDcmtkBridge.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
175 PalanthirServer/ToDcmtkBridge.cpp
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
176 PalanthirServer/DicomIntegerPixelAccessor.cpp
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
177 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
178
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
179 # Ensure autogenerated code is built before building ServerLibrary
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
180 add_dependencies(ServerLibrary CoreLibrary)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
181
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
182 add_executable(Palanthir
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
183 PalanthirServer/main.cpp
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
184 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
185
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
186 add_executable(UnitTests
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
187 ${GTEST_SOURCES}
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
188 UnitTests/main.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
189 UnitTests/SQLite.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
190 UnitTests/SQLiteChromium.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
191 UnitTests/Versions.cpp
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
192 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
193
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
194 TARGET_LINK_LIBRARIES(Palanthir ServerLibrary CoreLibrary)
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
195 TARGET_LINK_LIBRARIES(UnitTests ServerLibrary CoreLibrary)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
196
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
197 find_package(Doxygen)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
198 if (DOXYGEN_FOUND)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
199 configure_file(
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
200 ${CMAKE_SOURCE_DIR}/Resources/Palanthir.doxygen
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
201 ${CMAKE_CURRENT_BINARY_DIR}/Palanthir.doxygen
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
202 @ONLY)
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
203 add_custom_target(doc
48
0a04c70747d9 renaming
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 29
diff changeset
204 ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Palanthir.doxygen
12
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
205 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
206 COMMENT "Generating API documentation with Doxygen" VERBATIM
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
207 )
c38716a8a146 static link against MSVC CRT
Administrator@jodogne-w01
parents: 8
diff changeset
208 endif(DOXYGEN_FOUND)