1 #-----------------------------------------------------------------------------
2 # Build jpeg lib first:
5 # "jpeglib.h" is defined here:
7 ${GDCM_SOURCE_DIR}/src/jpeg/libijg8
8 #${GDCM_SOURCE_DIR}/jpeg/libijg12 #all files have been renamed, appending 12
9 #${GDCM_SOURCE_DIR}/jpeg/ljpg # JPEG lib from xmedcom
10 ${GDCM_BINARY_DIR}/ #for gdcmConfigure.h
13 SET(libgdcm_la_SOURCES
39 gdcmDicomDirElement.cxx
43 gdcmDicomDirPatient.cxx
50 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
52 TARGET_LINK_LIBRARIES(gdcm
55 gdcmljpeg # JPEG lib from xmedcom
58 TARGET_LINK_LIBRARIES(gdcm
62 Wsock32.lib #doesn't exist on cygwin
66 #The following is not working because when a header file is not found it tries
67 #to find one in the binary dir
68 #INSTALL_FILES(/include .h ${libgdcm_la_SOURCES})
69 #INSTALL_FILES(/include FILES gdcmIdo.h iddcmjpeg.h)
70 INSTALL_FILES(/include "\\.h$")
72 INSTALL_TARGETS(/lib/ gdcm)