Mercurial > hg > orthanc-transfers
comparison CMakeLists.txt @ 35:81262707d68e
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 12 Jun 2021 09:35:17 +0200 |
parents | 44a0430d7899 |
children | 49e9245b4005 |
comparison
equal
deleted
inserted
replaced
34:ff52b3e49d22 | 35:81262707d68e |
---|---|
22 | 22 |
23 if (ORTHANC_PLUGIN_VERSION STREQUAL "mainline") | 23 if (ORTHANC_PLUGIN_VERSION STREQUAL "mainline") |
24 set(ORTHANC_FRAMEWORK_VERSION "mainline") | 24 set(ORTHANC_FRAMEWORK_VERSION "mainline") |
25 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") | 25 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "hg") |
26 else() | 26 else() |
27 set(ORTHANC_FRAMEWORK_VERSION "1.7.2") | 27 set(ORTHANC_FRAMEWORK_VERSION "1.9.3") |
28 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") | 28 set(ORTHANC_FRAMEWORK_DEFAULT_SOURCE "web") |
29 endif() | 29 endif() |
30 | 30 |
31 | 31 |
32 # Parameters of the build | 32 # Parameters of the build |
43 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) | 43 include(${CMAKE_SOURCE_DIR}/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) |
44 | 44 |
45 include_directories(${ORTHANC_FRAMEWORK_ROOT}) | 45 include_directories(${ORTHANC_FRAMEWORK_ROOT}) |
46 | 46 |
47 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") | 47 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") |
48 if (ORTHANC_FRAMEWORK_USE_SHARED) | |
49 include(FindBoost) | |
50 find_package(Boost COMPONENTS thread) | |
51 | |
52 if (NOT Boost_FOUND) | |
53 message(FATAL_ERROR "Unable to locate Boost on this system") | |
54 endif() | |
55 | |
56 link_libraries(${Boost_LIBRARIES} jsoncpp) | |
57 endif() | |
58 | |
48 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) | 59 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) |
49 | 60 |
50 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") | 61 set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") |
51 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") | 62 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") |
52 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) | 63 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) |