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
19 gdcmDicomDirElement.cxx
22 gdcmDicomDirObject.cxx
23 gdcmDicomDirPatient.cxx
31 gdcmDocEntryArchive.cxx
40 gdcmJPEGFragmentsInfo.cxx
45 gdcmPixelReadConvert.cxx
46 gdcmPixelWriteConvert.cxx
56 ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
59 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
60 TARGET_LINK_LIBRARIES(gdcm
67 TARGET_LINK_LIBRARIES(gdcm Wsock32)
71 #The following is not working because when a header file is not found it tries
72 #to find one in the binary dir
73 #INSTALL_FILES(/include .h ${libgdcm_la_SOURCES})
74 INSTALL_FILES(/include "\\.h$")
76 INSTALL_TARGETS(/lib/ gdcm)