Mercurial > hg > orthanc-databases
comparison 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 |
comparison
equal
deleted
inserted
replaced
283:e7678a7b10bb | 284:64bf8914f02e |
---|---|
53 ##################################################################### | 53 ##################################################################### |
54 | 54 |
55 include_directories(${ORTHANC_FRAMEWORK_ROOT}) | 55 include_directories(${ORTHANC_FRAMEWORK_ROOT}) |
56 | 56 |
57 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") | 57 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") |
58 if (ORTHANC_FRAMEWORK_USE_SHARED) | |
59 include(FindBoost) | |
60 find_package(Boost COMPONENTS regex thread) | |
61 | |
62 if (NOT Boost_FOUND) | |
63 message(FATAL_ERROR "Unable to locate Boost on this system") | |
64 endif() | |
65 | |
66 link_libraries(${Boost_LIBRARIES} jsoncpp) | |
67 endif() | |
68 | |
58 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) | 69 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) |
59 | 70 |
60 if (ENABLE_SQLITE_BACKEND) | 71 if (ENABLE_SQLITE_BACKEND) |
61 add_definitions(-DORTHANC_ENABLE_SQLITE=1) | 72 add_definitions(-DORTHANC_ENABLE_SQLITE=1) |
62 endif() | 73 endif() |