1 #-----------------------------------------------------------------------------
2 # Rebuild gdcm whenever a file starting with gdcm* is modified
3 INCLUDE_REGULAR_EXPRESSION("^gdcm.*$")
12 # "jpeglib.h" is defined here:
14 ${GDCM_SOURCE_DIR}/src
15 ${GDCM_SOURCE_DIR}/src/gdcmmpeg2/src/mpeg2dec
16 ${GDCM_BINARY_DIR} #for gdcmConfigure.h
17 ${GDCM_BINARY_DIR}/src #for gdcmjpeg 8, 12 and 16
18 ${GDCM_BINARY_DIR}/src/gdcmjasper/src/libjasper/include
19 ${GDCM_SOURCE_DIR}/src/gdcmjasper/src/libjasper/include
22 SET(libgdcm_la_SOURCES
29 gdcmDicomDirElement.cxx
32 gdcmDicomDirObject.cxx
33 gdcmDicomDirPatient.cxx
43 gdcmDocEntryArchive.cxx
52 gdcmJPEGFragmentsInfo.cxx
59 gdcmPixelReadConvert.cxx
60 gdcmPixelWriteConvert.cxx
71 ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
74 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES})
75 TARGET_LINK_LIBRARIES(gdcm
84 TARGET_LINK_LIBRARIES(gdcm wsock32 snmpapi)
88 # Need nsl to resolve gethostbyname on SunOS-5.8
90 IF(CMAKE_SYSTEM MATCHES "SunOS.*")
91 TARGET_LINK_LIBRARIES(gdcm socket nsl)
92 ENDIF(CMAKE_SYSTEM MATCHES "SunOS.*")
94 INSTALL_FILES(/include/gdcm "\\.h$")
95 INSTALL_TARGETS(/lib/gdcm/ gdcm)