comparison CMakeLists.txt @ 282:a8ec00ed9a9b

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Aug 2020 13:07:30 +0200
parents c71595e893ef
children bb2c8c4a7945
comparison
equal deleted inserted replaced
281:b004474eeb66 282:a8ec00ed9a9b
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) 52 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
53 53
54 include_directories(${ORTHANC_FRAMEWORK_ROOT})
55
54 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") 56 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
55 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) 57 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES})
56 58
57 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") 59 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test")
58 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") 60 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)")
59 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) 61 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE)
60 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/GoogleTestConfiguration.cmake) 62 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/GoogleTestConfiguration.cmake)
61 else() 63 else()
62 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkParameters.cmake) 64 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake)
63 65
64 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) 66 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost)
65 set(ENABLE_GOOGLE_TEST ON) 67 set(ENABLE_GOOGLE_TEST ON)
66 set(ENABLE_SQLITE ON) 68 set(ENABLE_SQLITE ON)
67 set(ENABLE_MODULE_JOBS OFF CACHE INTERNAL "") 69 set(ENABLE_MODULE_JOBS OFF CACHE INTERNAL "")
68 set(ENABLE_MODULE_DICOM OFF CACHE INTERNAL "") 70 set(ENABLE_MODULE_DICOM OFF CACHE INTERNAL "")
69 71
70 include(${ORTHANC_FRAMEWORK_ROOT}/Resources/CMake/OrthancFrameworkConfiguration.cmake) 72 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkConfiguration.cmake)
71 include_directories(${ORTHANC_FRAMEWORK_ROOT}/Sources)
72 endif() 73 endif()
73 74
74 75
75 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake) 76 include(${CMAKE_SOURCE_DIR}/Resources/CMake/JavaScriptLibraries.cmake)
76 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/OrthancPluginsExports.cmake) 77 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/Plugins/OrthancPluginsExports.cmake)