Mercurial > hg > orthanc-databases
diff Resources/CMake/DatabasesFrameworkConfiguration.cmake @ 284:64bf8914f02e
sync + 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 08:49:52 +0200 |
parents | 9d00e5e073e8 |
children | eb03551d3a5f |
line wrap: on
line diff
--- a/Resources/CMake/DatabasesFrameworkConfiguration.cmake Fri Apr 23 10:02:00 2021 +0200 +++ b/Resources/CMake/DatabasesFrameworkConfiguration.cmake Sat Jun 12 08:49:52 2021 +0200 @@ -55,6 +55,17 @@ include_directories(${ORTHANC_FRAMEWORK_ROOT}) if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") + if (ORTHANC_FRAMEWORK_USE_SHARED) + include(FindBoost) + find_package(Boost COMPONENTS regex thread) + + 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}) if (ENABLE_SQLITE_BACKEND)