1 # - find DCMTK libraries
4 # DCMTK_INCLUDE_DIR - Directories to include to use DCMTK
5 # DCMTK_LIBRARIES - Files to link against to use DCMTK
6 # DCMTK_FOUND - If false, don't try to use DCMTK
7 # DCMTK_DIR - (optional) Source directory for DCMTK
9 # DCMTK_DIR can be used to make it simpler to find the various include
10 # directories and compiled libraries if you've just compiled it in the
11 # source tree. Just set it to the root of the tree where you extracted
14 # Written for VXL by Amitha Perera.
17 FIND_PATH( DCMTK_config_INCLUDE_DIR osconfig.h
18 ${DCMTK_DIR}/config/include ${DCMTK_DIR}/include
21 FIND_PATH( DCMTK_ofstd_INCLUDE_DIR ofstdinc.h
22 ${DCMTK_DIR}/ofstd/include ${DCMTK_DIR}/include/ofstd
25 FIND_LIBRARY( DCMTK_ofstd_LIBRARY ofstd
26 ${DCMTK_DIR}/ofstd/libsrc
27 ${DCMTK_DIR}/ofstd/libsrc/Release
28 ${DCMTK_DIR}/ofstd/libsrc/Debug
29 ${DCMTK_DIR}/ofstd/Release
30 ${DCMTK_DIR}/ofstd/Debug
35 FIND_PATH( DCMTK_dcmdata_INCLUDE_DIR dctypes.h
36 ${DCMTK_DIR}/dcmdata/include
37 ${DCMTK_DIR}/include/dcmdata
40 FIND_LIBRARY( DCMTK_dcmdata_LIBRARY dcmdata
41 ${DCMTK_DIR}/dcmdata/libsrc
42 ${DCMTK_DIR}/dcmdata/libsrc/Release
43 ${DCMTK_DIR}/dcmdata/libsrc/Debug
44 ${DCMTK_DIR}/dcmdata/Release
45 ${DCMTK_DIR}/dcmdata/Debug
50 FIND_PATH( DCMTK_dcmimgle_INCLUDE_DIR dcmimage.h
51 ${DCMTK_DIR}/dcmimgle/include
52 ${DCMTK_DIR}/include/dcmimgle
55 FIND_LIBRARY( DCMTK_dcmimgle_LIBRARY dcmimgle
56 ${DCMTK_DIR}/dcmimgle/libsrc
57 ${DCMTK_DIR}/dcmimgle/libsrc/Release
58 ${DCMTK_DIR}/dcmimgle/libsrc/Debug
59 ${DCMTK_DIR}/dcmimgle/Release
60 ${DCMTK_DIR}/dcmimgle/Debug
64 FIND_LIBRARY(DCMTK_imagedb_LIBRARY imagedb
65 ${DCMTK_DIR}/imagectn/libsrc/Release
66 ${DCMTK_DIR}/imagectn/libsrc/
67 ${DCMTK_DIR}/imagectn/libsrc/Debug
70 FIND_LIBRARY(DCMTK_dcmnet_LIBRARY dcmnet
71 ${DCMTK_DIR}/dcmnet/libsrc/Release
72 ${DCMTK_DIR}/dcmnet/libsrc/Debug
73 ${DCMTK_DIR}/dcmnet/libsrc/
77 IF( DCMTK_config_INCLUDE_DIR
78 AND DCMTK_ofstd_INCLUDE_DIR
79 AND DCMTK_ofstd_LIBRARY
80 AND DCMTK_dcmdata_INCLUDE_DIR
81 AND DCMTK_dcmdata_LIBRARY
82 AND DCMTK_dcmimgle_INCLUDE_DIR
83 AND DCMTK_dcmimgle_LIBRARY )
85 SET( DCMTK_FOUND "YES" )
86 SET( DCMTK_INCLUDE_DIR
87 ${DCMTK_config_INCLUDE_DIR}
88 ${DCMTK_ofstd_INCLUDE_DIR}
89 ${DCMTK_dcmdata_INCLUDE_DIR}
90 ${DCMTK_dcmimgle_INCLUDE_DIR}
94 ${DCMTK_dcmimgle_LIBRARY}
95 ${DCMTK_dcmdata_LIBRARY}
96 ${DCMTK_ofstd_LIBRARY}
97 ${DCMTK_config_LIBRARY}
100 IF(DCMTK_imagedb_LIBRARY)
103 ${DCMTK_imagedb_LIBRARY}
105 ENDIF(DCMTK_imagedb_LIBRARY)
107 IF(DCMTK_dcmnet_LIBRARY)
110 ${DCMTK_dcmnet_LIBRARY}
112 ENDIF(DCMTK_dcmnet_LIBRARY)
115 SET( DCMTK_LIBRARIES ${DCMTK_LIBRARIES} netapi32 )
118 ENDIF( DCMTK_config_INCLUDE_DIR
119 AND DCMTK_ofstd_INCLUDE_DIR
120 AND DCMTK_ofstd_LIBRARY
121 AND DCMTK_dcmdata_INCLUDE_DIR
122 AND DCMTK_dcmdata_LIBRARY
123 AND DCMTK_dcmimgle_INCLUDE_DIR
124 AND DCMTK_dcmimgle_LIBRARY )
126 IF( NOT DCMTK_FOUND )
127 SET( DCMTK_DIR "" CACHE PATH "Root of DCMTK source tree (optional)." )
128 MARK_AS_ADVANCED( DCMTK_DIR )
129 ENDIF( NOT DCMTK_FOUND )