comparison CMakeLists.txt @ 269:938257eebc03

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 10 Jun 2020 16:47:06 +0200
parents fada2686f2c4
children 3e9307f6da67
comparison
equal deleted inserted replaced
268:6171ef61c512 269:938257eebc03
53 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/VersionScript.map") 53 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/VersionScript.map")
54 endif() 54 endif()
55 55
56 56
57 # Download and setup the Orthanc framework 57 # Download and setup the Orthanc framework
58 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
59
60
61 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") 58 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
62 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") 59 set(ENABLE_GOOGLE_TEST ON)
63 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") 60 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
64 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE)
65 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/GoogleTestConfiguration.cmake)
66 61
67 include_directories( 62 include_directories(
68 ${CMAKE_SOURCE_DIR}/Resources/Orthanc/ 63 ${CMAKE_SOURCE_DIR}/Resources/Orthanc/
69 ) 64 )
70 link_libraries(OrthancFramework) 65 link_libraries(OrthancFramework)
71 else() 66 else()
67 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
72 include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake) 68 include(${ORTHANC_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake)
73 69
74 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) 70 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost)
75 set(ENABLE_GOOGLE_TEST ON) 71 set(ENABLE_GOOGLE_TEST ON)
76 set(ENABLE_SQLITE ON) 72 set(ENABLE_SQLITE ON)