root/OpenSceneGraph/trunk/src/osgPlugins/dicom/CMakeLists.txt @ 10423

Revision 10423, 0.7 kB (checked in by robert, 5 years ago)

Added search in /usr/local/dicom for dcmtk.

Line 
1IF(DCMTK_FOUND)
2    # note, we have to include a '/' in front of the directory string to prevent a CMake bug from ignoring the directory
3    INCLUDE_DIRECTORIES(${DCMTK_ROOT_INCLUDE_DIR})
4
5    SET(TARGET_SRC ReaderWriterDICOM.cpp )
6
7    LINK_LIBRARIES(${DCMTK_LIBRARIES} ${ZLIB_LIBRARY})
8
9    ADD_DEFINITIONS(-DUSE_DCMTK)
10
11ELSEIF(ITK_FOUND)
12
13    INCLUDE(${ITK_USE_FILE})
14
15    INCLUDE_DIRECTORIES( ITK_INCLUDE_DIRS )
16
17    SET(TARGET_SRC ReaderWriterDICOM.cpp )
18
19    LINK_DIRECTORIES(${ITK_LIBRARY_DIRS})
20
21    # LINK_LIBRARIES(${ITK_LIBRARIES})
22
23    LINK_LIBRARIES(ITKCommon ITKIO)
24
25    ADD_DEFINITIONS(-DUSE_ITK)
26
27ENDIF()
28
29SET(TARGET_ADDED_LIBRARIES osgVolume )
30
31#### end var setup  ###
32SETUP_PLUGIN(dicom dicom)
Note: See TracBrowser for help on using the browser.