comparison Applications/CMakeLists.txt @ 292:053af6d76f2a

fix shared library linking
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Jul 2023 17:20:14 +0200
parents cf20f8417eaa
children c1687b8fc800
comparison
equal deleted inserted replaced
291:5fe243cef6e9 292:053af6d76f2a
49 include(${CMAKE_SOURCE_DIR}/../Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) 49 include(${CMAKE_SOURCE_DIR}/../Resources/Orthanc/CMake/DownloadOrthancFramework.cmake)
50 50
51 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") 51 if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system")
52 if (ORTHANC_FRAMEWORK_USE_SHARED) 52 if (ORTHANC_FRAMEWORK_USE_SHARED)
53 include(FindBoost) 53 include(FindBoost)
54 find_package(Boost COMPONENTS filesystem program_options regex system thread) 54 find_package(Boost COMPONENTS filesystem program_options regex system thread date_time)
55 55
56 if (NOT Boost_FOUND) 56 if (NOT Boost_FOUND)
57 message(FATAL_ERROR "Unable to locate Boost on this system") 57 message(FATAL_ERROR "Unable to locate Boost on this system")
58 endif() 58 endif()
59 59
60 include(FindDCMTK) 60 include(FindDCMTK)
61 link_libraries(${Boost_LIBRARIES} ${DCMTK_LIBRARIES} jsoncpp) 61 link_libraries(${Boost_LIBRARIES} ${DCMTK_LIBRARIES} jsoncpp crypto)
62 endif() 62 endif()
63 63
64 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) 64 link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES})
65 65
66 else() 66 else()