Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/Plugin/CMakeLists.txt Thu Jun 10 12:07:04 2021 +0200 +++ b/Applications/StoneWebViewer/Plugin/CMakeLists.txt Sat Jun 12 09:01:40 2021 +0200 @@ -46,6 +46,17 @@ include_directories(${ORTHANC_FRAMEWORK_ROOT}) if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") + if (ORTHANC_FRAMEWORK_USE_SHARED) + include(FindBoost) + find_package(Boost COMPONENTS system) + + if (NOT Boost_FOUND) + message(FATAL_ERROR "Unable to locate Boost on this system") + endif() + + link_libraries(${Boost_LIBRARIES} jsoncpp) + endif() + link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) else()