From bdbc115014dc26b49c9c2df3be0d7025c3527839 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Tue, 18 Oct 2016 10:05:57 +0200 Subject: [PATCH] Add flag to compile PacsConnection with external GDCM --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3bb8fc5..c4fbc59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,10 @@ if(MSVC) set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /bigobj" ) endif(MSVC) +if(${CLITK_USE_PACS_CONNECTION}) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lgdcmMEXD" ) +endif(${CLITK_USE_PACS_CONNECTION}) + #========================================================= include(${CLITK_SOURCE_DIR}/cmake/common.cmake) include(${CLITK_SOURCE_DIR}/cmake/dependencies.cmake) -- 2.45.0