From 6a19b04d220221987f0eae4dafe6e1753cd55cd0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 13 Jan 2009 10:12:13 +0000 Subject: [PATCH] Added a / in front of the ${DCMTK_ROOT_INCLUDE_DIR} to workaround a CMake bug that ignores /usr/local/include directories. Added ZLIB to include line. --- src/osgPlugins/dicom/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/osgPlugins/dicom/CMakeLists.txt b/src/osgPlugins/dicom/CMakeLists.txt index f3f86d33f..75c61828c 100644 --- a/src/osgPlugins/dicom/CMakeLists.txt +++ b/src/osgPlugins/dicom/CMakeLists.txt @@ -1,12 +1,11 @@ IF (DCMTK_FOUND) - MESSAGE("DCMTK_ROOT_INCLUDE_DIR: " ${DCMTK_ROOT_INCLUDE_DIR}) - - INCLUDE_DIRECTORIES(${DCMTK_ROOT_INCLUDE_DIR}) + # note, we have to include a '/' in front of the directory string to prevent a CMake bug from ignoring the directory + INCLUDE_DIRECTORIES(/${DCMTK_ROOT_INCLUDE_DIR}) SET(TARGET_SRC ReaderWriterDICOM.cpp ) - LINK_LIBRARIES(${DCMTK_LIBRARIES}) + LINK_LIBRARIES(${DCMTK_LIBRARIES} ${ZLIB_LIBRARY}) ADD_DEFINITIONS(-DUSE_DCMTK)