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
55 ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
58 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
59 TARGET_LINK_LIBRARIES(gdcm
66 TARGET_LINK_LIBRARIES(gdcm Wsock32)
70 #The following is not working because when a header file is not found it tries
71 #to find one in the binary dir
72 #INSTALL_FILES(/include .h ${libgdcm_la_SOURCES})
73 INSTALL_FILES(/include "\\.h$")
75 INSTALL_TARGETS(/lib/ gdcm)