comparison CMakeLists.txt @ 4030:100fbe970762

DANGEROUS commit: removing HAS_EMBEDDED_RESOURCES
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jun 2020 20:50:20 +0200
parents f6cb16413325
children e3b3af80732d
comparison
equal deleted inserted replaced
4029:156fece692e3 4030:100fbe970762
24 set(ENABLE_SQLITE ON) 24 set(ENABLE_SQLITE ON)
25 set(ENABLE_WEB_CLIENT ON) 25 set(ENABLE_WEB_CLIENT ON)
26 set(ENABLE_WEB_SERVER ON) 26 set(ENABLE_WEB_SERVER ON)
27 set(ENABLE_ZLIB ON) 27 set(ENABLE_ZLIB ON)
28 28
29 set(HAS_EMBEDDED_RESOURCES ON)
30
31 29
32 ##################################################################### 30 #####################################################################
33 ## CMake parameters tunable at the command line to configure the 31 ## CMake parameters tunable at the command line to configure the
34 ## plugins, the companion tools, and the unit tests 32 ## plugins, the companion tools, and the unit tests
35 ##################################################################### 33 #####################################################################
36 34
37 # Parameters of the build 35 # Parameters of the build
36 set(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)")
38 SET(BUILD_MODALITY_WORKLISTS ON CACHE BOOL "Whether to build the sample plugin to serve modality worklists") 37 SET(BUILD_MODALITY_WORKLISTS ON CACHE BOOL "Whether to build the sample plugin to serve modality worklists")
39 SET(BUILD_RECOVER_COMPRESSED_FILE ON CACHE BOOL "Whether to build the companion tool to recover files compressed using Orthanc") 38 SET(BUILD_RECOVER_COMPRESSED_FILE ON CACHE BOOL "Whether to build the companion tool to recover files compressed using Orthanc")
40 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Whether to build the ServeFolders plugin") 39 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Whether to build the ServeFolders plugin")
41 SET(BUILD_CONNECTIVITY_CHECKS ON CACHE BOOL "Whether to build the ConnectivityChecks plugin") 40 SET(BUILD_CONNECTIVITY_CHECKS ON CACHE BOOL "Whether to build the ConnectivityChecks plugin")
42 SET(ENABLE_PLUGINS ON CACHE BOOL "Enable plugins") 41 SET(ENABLE_PLUGINS ON CACHE BOOL "Enable plugins")
194 ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/Database/InstallTrackAttachmentsSize.sql 193 ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/Database/InstallTrackAttachmentsSize.sql
195 ) 194 )
196 195
197 if (STANDALONE_BUILD) 196 if (STANDALONE_BUILD)
198 # We embed all the resources in the binaries for standalone builds 197 # We embed all the resources in the binaries for standalone builds
199 add_definitions(-DORTHANC_STANDALONE=1) 198 add_definitions(
199 -DORTHANC_HAS_EMBEDDED_RESOURCES=1
200 -DORTHANC_STANDALONE=1
201 )
200 EmbedResources( 202 EmbedResources(
203 --target=OrthancEmbeddedResources
201 ${ORTHANC_EMBEDDED_FILES} 204 ${ORTHANC_EMBEDDED_FILES}
202 ORTHANC_EXPLORER ${CMAKE_CURRENT_SOURCE_DIR}/OrthancExplorer 205 ORTHANC_EXPLORER ${CMAKE_CURRENT_SOURCE_DIR}/OrthancExplorer
203 ${DCMTK_DICTIONARIES} 206 ${DCMTK_DICTIONARIES}
204 ${LIBICU_RESOURCES} 207 ${LIBICU_RESOURCES}
205 ) 208 )
206 else() 209 else()
207 add_definitions( 210 add_definitions(
211 -DORTHANC_HAS_EMBEDDED_RESOURCES=1
212 -DORTHANC_PATH=\"${CMAKE_SOURCE_DIR}\"
208 -DORTHANC_STANDALONE=0 213 -DORTHANC_STANDALONE=0
209 -DORTHANC_PATH=\"${CMAKE_SOURCE_DIR}\"
210 ) 214 )
211 EmbedResources( 215 EmbedResources(
216 --target=OrthancEmbeddedResources
212 ${ORTHANC_EMBEDDED_FILES} 217 ${ORTHANC_EMBEDDED_FILES}
213 ${LIBICU_RESOURCES} 218 ${LIBICU_RESOURCES}
214 ) 219 )
215 endif() 220 endif()
216 221