Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/Plugin/CMakeLists.txt @ 1835:6c252e51008d
no more need of "-DORTHANC_FRAMEWORK_ADDITIONAL_LIBRARIES" to dynamically link against system-wide orthanc framework
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 12 Jun 2021 09:01:40 +0200 |
parents | 9ac2a65d4172 |
children | c01ed7a7c11f |
comparison
equal
deleted
inserted
replaced
1834:126522623e20 | 1835:6c252e51008d |
---|---|
44 include(${CMAKE_SOURCE_DIR}/../../../OrthancStone/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) | 44 include(${CMAKE_SOURCE_DIR}/../../../OrthancStone/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) |
45 | 45 |
46 include_directories(${ORTHANC_FRAMEWORK_ROOT}) | 46 include_directories(${ORTHANC_FRAMEWORK_ROOT}) |
47 | 47 |
48 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") | 48 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") |
49 if (ORTHANC_FRAMEWORK_USE_SHARED) | |
50 include(FindBoost) | |
51 find_package(Boost COMPONENTS system) | |
52 | |
53 if (NOT Boost_FOUND) | |
54 message(FATAL_ERROR "Unable to locate Boost on this system") | |
55 endif() | |
56 | |
57 link_libraries(${Boost_LIBRARIES} jsoncpp) | |
58 endif() | |
59 | |
49 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) | 60 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) |
50 | 61 |
51 else() | 62 else() |
52 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake) | 63 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake) |
53 set(ENABLE_MODULE_IMAGES OFF) | 64 set(ENABLE_MODULE_IMAGES OFF) |