# HG changeset patch # User Sebastien Jodogne # Date 1596554015 -7200 # Node ID 541a4aa63278e6af53affc174c83363163fb8cf8 # Parent 3d457e61a88ccd19cc17d6dfcfe9b85205d900a4 fix diff -r 3d457e61a88c -r 541a4aa63278 Applications/CMakeLists.txt --- a/Applications/CMakeLists.txt Tue Aug 04 17:01:54 2020 +0200 +++ b/Applications/CMakeLists.txt Tue Aug 04 17:13:35 2020 +0200 @@ -26,16 +26,17 @@ SET(ORTHANC_WSI_DIR ${CMAKE_CURRENT_LIST_DIR}/..) SET(USE_OPENJPEG_JP2 ON) -include_directories(${ORTHANC_FRAMEWORK_ROOT}) - if (ORTHANC_FRAMEWORK_SOURCE STREQUAL "system") set(ENABLE_DCMTK ON) set(ORTHANC_BOOST_COMPONENTS program_options) include(${CMAKE_SOURCE_DIR}/../Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) + link_libraries(${ORTHANC_FRAMEWORK_LIBRARIES}) + include_directories(${ORTHANC_FRAMEWORK_ROOT}) else() include(${CMAKE_SOURCE_DIR}/../Resources/Orthanc/CMake/DownloadOrthancFramework.cmake) + include_directories(${ORTHANC_FRAMEWORK_ROOT}) UNSET(STANDALONE_BUILD CACHE) SET(STANDALONE_BUILD ON) # Embed DCMTK's dictionaries for static builds