comparison Applications/Samples/RtViewerPlugin/CMakeLists.txt @ 1836:5a6adbc20ace

cleanup cmake
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 12 Jun 2021 13:43:42 +0200
parents b05d5f0d014f
children c01ed7a7c11f
comparison
equal deleted inserted replaced
1835:6c252e51008d 1836:5a6adbc20ace
52 include(${CMAKE_SOURCE_DIR}/../../../OrthancStone/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) 52 include(${CMAKE_SOURCE_DIR}/../../../OrthancStone/Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
53 53
54 include_directories(${ORTHANC_FRAMEWORK_ROOT}) 54 include_directories(${ORTHANC_FRAMEWORK_ROOT})
55 55
56 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") 56 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
57 if (ORTHANC_FRAMEWORK_USE_SHARED)
58 include(FindBoost)
59 find_package(Boost COMPONENTS system)
60
61 if (NOT Boost_FOUND)
62 message(FATAL_ERROR "Unable to locate Boost on this system")
63 endif()
64
65 link_libraries(${Boost_LIBRARIES} jsoncpp)
66 endif()
67
57 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) 68 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES})
58 69
59 else() 70 else()
60 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake) 71 include(${ORTHANC_FRAMEWORK_ROOT}/../Resources/CMake/OrthancFrameworkParameters.cmake)
61 set(ENABLE_MODULE_IMAGES OFF) 72 set(ENABLE_MODULE_IMAGES OFF)