1 #-----------------------------------------------------------------------------
2 # Build jpeg lib first:
5 # "jpeglib.h" is defined here:
8 ${GDCM_BINARY_DIR}/ #for gdcmConfigure.h
9 # ${GDCM_BINARY_DIR}/src/jpeg/libijg8 #created a build time
10 # ${GDCM_BINARY_DIR}/src/jpeg/libijg12 #created a build time
13 SET(libgdcm_la_SOURCES
17 gdcmDicomDirElement.cxx
20 gdcmDicomDirObject.cxx
21 gdcmDicomDirPatient.cxx
37 gdcmJPEGFragmentsInfo.cxx
52 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
54 TARGET_LINK_LIBRARIES(gdcm
57 gdcmljpeg # JPEG lib from xmedcom
60 TARGET_LINK_LIBRARIES(gdcm
64 Wsock32.lib #doesn't exist on cygwin
68 #The following is not working because when a header file is not found it tries
69 #to find one in the binary dir
70 #INSTALL_FILES(/include .h ${libgdcm_la_SOURCES})
71 #INSTALL_FILES(/include FILES gdcmIdo.h iddcmjpeg.h)
72 INSTALL_FILES(/include "\\.h$")
74 INSTALL_TARGETS(/lib/ gdcm)