Mercurial > hg > orthanc-webviewer
comparison CMakeLists.txt @ 172:330ecfd96aec
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Oct 2017 12:53:46 +0200 |
parents | 38aa615b7667 |
children | 81f16c5667ba |
comparison
equal
deleted
inserted
replaced
171:b6c55352818c | 172:330ecfd96aec |
---|---|
35 set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") | 35 set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") |
36 set(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") | 36 set(USE_SYSTEM_SQLITE ON CACHE BOOL "Use the system version of SQLite") |
37 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") | 37 set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") |
38 | 38 |
39 # Distribution-specific settings | 39 # Distribution-specific settings |
40 set(USE_GTEST_DEBIAN_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") | 40 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") |
41 mark_as_advanced(USE_GTEST_DEBIAN_SOURCE_PACKAGE) | 41 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) |
42 | 42 |
43 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/Orthanc) | 43 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/Orthanc) |
44 set(ORTHANC_DISABLE_PATCH ON) # No need for the "patch" command-line tool | 44 set(ORTHANC_DISABLE_PATCH ON) # No need for the "patch" command-line tool |
45 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) | 45 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) |
46 include(CheckIncludeFiles) | 46 include(CheckIncludeFiles) |
90 JAVASCRIPT_LIBS ${JAVASCRIPT_LIBS_DIR} | 90 JAVASCRIPT_LIBS ${JAVASCRIPT_LIBS_DIR} |
91 ${EMBEDDED_RESOURCES} | 91 ${EMBEDDED_RESOURCES} |
92 ) | 92 ) |
93 | 93 |
94 add_definitions( | 94 add_definitions( |
95 -DORTHANC_DEFAULT_DICOM_ENCODING=Encoding_Latin1 | |
95 -DORTHANC_ENABLE_LOCALE=0 | 96 -DORTHANC_ENABLE_LOCALE=0 |
96 -DORTHANC_ENABLE_PUGIXML=0 | 97 -DORTHANC_ENABLE_PUGIXML=0 |
98 -DORTHANC_ENABLE_SQLITE=1 | |
97 -DORTHANC_SQLITE_STANDALONE=1 | 99 -DORTHANC_SQLITE_STANDALONE=1 |
98 ) | 100 ) |
99 | 101 |
100 | 102 |
101 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | 103 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR |
199 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux | 201 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
200 ) | 202 ) |
201 | 203 |
202 add_executable(UnitTests | 204 add_executable(UnitTests |
203 ${CORE_SOURCES} | 205 ${CORE_SOURCES} |
204 ${GTEST_SOURCES} | 206 ${GOOGLE_TEST_SOURCES} |
205 ${JSONCPP_SOURCES} | 207 ${JSONCPP_SOURCES} |
206 UnitTestsSources/UnitTestsMain.cpp | 208 UnitTestsSources/UnitTestsMain.cpp |
207 ) | 209 ) |