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
44 gdcmDocEntryArchive.cxx
53 gdcmJPEGFragmentsInfo.cxx
60 gdcmPixelReadConvert.cxx
61 gdcmPixelWriteConvert.cxx
72 ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
75 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES})
76 TARGET_LINK_LIBRARIES(gdcm
85 TARGET_LINK_LIBRARIES(gdcm wsock32 snmpapi)
89 # Need nsl to resolve gethostbyname on SunOS-5.8
91 IF(CMAKE_SYSTEM MATCHES "SunOS.*")
92 TARGET_LINK_LIBRARIES(gdcm socket nsl)
93 ENDIF(CMAKE_SYSTEM MATCHES "SunOS.*")
95 INSTALL_FILES(/include/gdcm "\\.h$")
96 INSTALL_TARGETS(/lib/gdcm/ gdcm)