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_SOURCE_DIR}/src/gdcmopenjpeg/libopenjpeg
21 SET(libgdcm_la_SOURCES
24 gdcmCallbackCommand.cxx
26 gdcmCommandManager.cxx
30 gdcmDicomDirElement.cxx
33 gdcmDicomDirObject.cxx
34 gdcmDicomDirPatient.cxx
45 gdcmDocEntryArchive.cxx
54 gdcmJPEGFragmentsInfo.cxx
61 gdcmPixelReadConvert.cxx
62 gdcmPixelWriteConvert.cxx
73 ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
76 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES})
77 TARGET_LINK_LIBRARIES(gdcm
86 TARGET_LINK_LIBRARIES(gdcm wsock32 snmpapi)
90 # Need nsl to resolve gethostbyname on SunOS-5.8
92 IF(CMAKE_SYSTEM MATCHES "SunOS.*")
93 TARGET_LINK_LIBRARIES(gdcm socket nsl)
94 ENDIF(CMAKE_SYSTEM MATCHES "SunOS.*")
96 INSTALL_FILES(/include/gdcm "\\.h$")
97 INSTALL_TARGETS(/lib/gdcm/ gdcm)