comparison CMakeLists.txt @ 1251:ac877a0fcf52

cleaning
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 Jan 2015 14:25:44 +0100
parents 32fcc5dc7562
children 50632b89e294
comparison
equal deleted inserted replaced
1250:2ffe07abd9d8 1251:ac877a0fcf52
198 UnitTestsSources/JpegLosslessTests.cpp 198 UnitTestsSources/JpegLosslessTests.cpp
199 UnitTestsSources/PluginsTests.cpp 199 UnitTestsSources/PluginsTests.cpp
200 ) 200 )
201 201
202 202
203 set(ORTHANC_EMBEDDED_FILES
204 PREPARE_DATABASE ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/PrepareDatabase.sql
205 UPGRADE_DATABASE_3_TO_4 ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/Upgrade3To4.sql
206 UPGRADE_DATABASE_4_TO_5 ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/Upgrade4To5.sql
207 CONFIGURATION_SAMPLE ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Configuration.json
208 DICOM_CONFORMANCE_STATEMENT ${CMAKE_CURRENT_SOURCE_DIR}/Resources/DicomConformanceStatement.txt
209 LUA_TOOLBOX ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Toolbox.lua
210 )
211
212
203 213
204 ##################################################################### 214 #####################################################################
205 ## Inclusion of third-party dependencies 215 ## Inclusion of third-party dependencies
206 ##################################################################### 216 #####################################################################
207 217
255 265
256 ##################################################################### 266 #####################################################################
257 ## Autogeneration of files 267 ## Autogeneration of files
258 ##################################################################### 268 #####################################################################
259 269
260 # Prepare the embedded files
261 set(EMBEDDED_FILES
262 PREPARE_DATABASE ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/PrepareDatabase.sql
263 UPGRADE_DATABASE_3_TO_4 ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/Upgrade3To4.sql
264 UPGRADE_DATABASE_4_TO_5 ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/Upgrade4To5.sql
265 CONFIGURATION_SAMPLE ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Configuration.json
266 DICOM_CONFORMANCE_STATEMENT ${CMAKE_CURRENT_SOURCE_DIR}/Resources/DicomConformanceStatement.txt
267 LUA_TOOLBOX ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Toolbox.lua
268 )
269
270 if (${STANDALONE_BUILD}) 270 if (${STANDALONE_BUILD})
271 # We embed all the resources in the binaries for standalone builds 271 # We embed all the resources in the binaries for standalone builds
272 add_definitions(-DORTHANC_STANDALONE=1) 272 add_definitions(-DORTHANC_STANDALONE=1)
273 EmbedResources( 273 EmbedResources(
274 ${EMBEDDED_FILES} 274 ${ORTHANC_EMBEDDED_FILES}
275 ORTHANC_EXPLORER ${CMAKE_CURRENT_SOURCE_DIR}/OrthancExplorer 275 ORTHANC_EXPLORER ${CMAKE_CURRENT_SOURCE_DIR}/OrthancExplorer
276 ${DCMTK_DICTIONARIES} 276 ${DCMTK_DICTIONARIES}
277 ) 277 )
278 else() 278 else()
279 add_definitions( 279 add_definitions(
280 -DORTHANC_STANDALONE=0 280 -DORTHANC_STANDALONE=0
281 -DORTHANC_PATH=\"${CMAKE_SOURCE_DIR}\" 281 -DORTHANC_PATH=\"${CMAKE_SOURCE_DIR}\"
282 ) 282 )
283 EmbedResources( 283 EmbedResources(
284 ${EMBEDDED_FILES} 284 ${ORTHANC_EMBEDDED_FILES}
285 ) 285 )
286 endif() 286 endif()
287 287
288 288
289 289