1 #-----------------------------------------------------------------------------
2 # Rebuild gdcm whenever a file starting with gdcm* is modified
3 INCLUDE_REGULAR_EXPRESSION("^gdcm.*$")
5 # Build jpeg lib first:
7 # IF (BUILD_SHARED_LIBS)
8 # ADD_DEFINITIONS(-DJPEGDLL)
9 # ELSE (BUILD_SHARED_LIBS)
10 # ADD_DEFINITIONS(-DJPEGSTATIC)
11 # ENDIF (BUILD_SHARED_LIBS)
20 # "jpeglib.h" is defined here:
22 ${GDCM_SOURCE_DIR}/src
23 ${GDCM_SOURCE_DIR}/src/gdcmmpeg2/src/mpeg2dec
24 ${GDCM_BINARY_DIR}/ #for gdcmConfigure.h
25 ${GDCM_BINARY_DIR}/src #for gdcmjpeg 8, 12 and 16
26 ${GDCM_BINARY_DIR}/src/gdcmjasper/src/libjasper/include
27 ${GDCM_SOURCE_DIR}/src/gdcmjasper/src/libjasper/include
30 SET(libgdcm_la_SOURCES
37 gdcmDicomDirElement.cxx
40 gdcmDicomDirObject.cxx
41 gdcmDicomDirPatient.cxx
50 gdcmDocEntryArchive.cxx
59 gdcmJPEGFragmentsInfo.cxx
65 gdcmPixelReadConvert.cxx
66 gdcmPixelWriteConvert.cxx
77 ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
80 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
81 TARGET_LINK_LIBRARIES(gdcm
90 TARGET_LINK_LIBRARIES(gdcm wsock32 snmpapi)
94 # Need nsl to resolve gethostbyname on SunOS-5.8
96 IF(CMAKE_SYSTEM MATCHES "SunOS.*")
97 TARGET_LINK_LIBRARIES(gdcm socket nsl)
98 ENDIF(CMAKE_SYSTEM MATCHES "SunOS.*")
100 INSTALL_FILES(/include/gdcm "\\.h$")
101 INSTALL_TARGETS(/lib/gdcm/ gdcm)