comparison CMakeLists.txt @ 277:d5b46b450b54

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 12:02:23 +0200
parents 1d360b822973
children c71595e893ef
comparison
equal deleted inserted replaced
276:1d360b822973 277:d5b46b450b54
47 set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked") 47 set(ORTHANC_FRAMEWORK_STATIC OFF CACHE BOOL "If linking against the Orthanc framework system library, indicates whether this library was statically linked")
48 mark_as_advanced(ORTHANC_FRAMEWORK_STATIC) 48 mark_as_advanced(ORTHANC_FRAMEWORK_STATIC)
49 49
50 50
51 # Download and setup the Orthanc framework 51 # Download and setup the Orthanc framework
52 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
53
52 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") 54 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
53 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
54 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) 55 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES})
55 56
56 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") 57 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
57 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") 58 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)")
58 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) 59 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE)
59 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/GoogleTestConfiguration.cmake) 60 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/GoogleTestConfiguration.cmake)
60 else() 61 else()
61 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
62 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake) 62 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake)
63 63
64 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) 64 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost)
65 set(ENABLE_GOOGLE_TEST ON) 65 set(ENABLE_GOOGLE_TEST ON)
66 set(ENABLE_SQLITE ON) 66 set(ENABLE_SQLITE ON)