1 #-----------------------------------------------------------------------------
2 # Rebuild gdcm whenever a file starting with gdcm* is modified
3 INCLUDE_REGULAR_EXPRESSION("^gdcm.*$")
5 # Build jpeg lib first:
8 # "jpeglib.h" is defined here:
10 ${GDCM_SOURCE_DIR}/src
11 ${GDCM_BINARY_DIR}/ #for gdcmConfigure.h
12 ${GDCM_BINARY_DIR}/src #for gdcmjpeg 8, 12 and 16
15 SET(libgdcm_la_SOURCES
20 gdcmDicomDirElement.cxx
23 gdcmDicomDirObject.cxx
24 gdcmDicomDirPatient.cxx
32 gdcmDocEntryArchive.cxx
41 gdcmJPEGFragmentsInfo.cxx
46 gdcmPixelReadConvert.cxx
47 gdcmPixelWriteConvert.cxx
57 ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
60 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
61 TARGET_LINK_LIBRARIES(gdcm
68 TARGET_LINK_LIBRARIES(gdcm Wsock32 Snmpapi)
72 #The following is not working because when a header file is not found it tries
73 #to find one in the binary dir
74 #INSTALL_FILES(/include .h ${libgdcm_la_SOURCES})
75 INSTALL_FILES(/include "\\.h$")
77 INSTALL_TARGETS(/lib/ gdcm)