]> Creatis software - gdcm.git/blob - src/CMakeLists.txt
ENH: * Finished lossless transition, not only do we now read all lossless jpeg
[gdcm.git] / src / CMakeLists.txt
1 #-----------------------------------------------------------------------------
2 # Build jpeg lib first:
3 SUBDIRS(jpeg)
4
5 # "jpeglib.h" is defined here:
6 INCLUDE_DIRECTORIES(
7   ${GDCM_SOURCE_DIR}/
8   ${GDCM_BINARY_DIR}/ #for gdcmConfigure.h
9 )
10
11 SET(libgdcm_la_SOURCES
12    gdcmBinEntry.cxx
13    gdcmDebug.cxx
14    gdcmDicomDir.cxx
15    gdcmDicomDirElement.cxx
16    gdcmDicomDirImage.cxx
17    gdcmDicomDirMeta.cxx
18    gdcmDicomDirObject.cxx
19    gdcmDicomDirPatient.cxx
20    gdcmDicomDirSerie.cxx
21    gdcmDicomDirStudy.cxx
22    gdcmDict.cxx
23    gdcmDictEntry.cxx
24    gdcmDictSet.cxx
25    gdcmDirList.cxx
26    gdcmDocEntry.cxx
27    gdcmDocEntrySet.cxx
28    gdcmDocument.cxx
29    gdcmElementSet.cxx
30    gdcmException.cxx
31    gdcmFile.cxx
32    gdcmGlobal.cxx
33    gdcmHeader.cxx
34    gdcmHeaderHelper.cxx
35    gdcmJPEGFragmentsInfo.cxx
36    gdcmJpeg8.cxx
37    gdcmJpeg12.cxx
38    gdcmJpeg16.cxx
39    gdcmJpeg2000.cxx
40    gdcmParsePixels.cxx
41    gdcmPixelConvert.cxx
42    gdcmRLEFramesInfo.cxx
43    gdcmSeqEntry.cxx
44    gdcmSQItem.cxx
45    gdcmTS.cxx
46    gdcmUtil.cxx
47    gdcmValEntry.cxx   
48    gdcmVR.cxx
49    )
50
51 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
52 IF(UNIX)
53   TARGET_LINK_LIBRARIES(gdcm 
54     gdcmijpeg8 
55     gdcmijpeg12
56     gdcmijpeg16
57   )
58 ELSE(UNIX)
59   TARGET_LINK_LIBRARIES(gdcm 
60     gdcmijpeg8 
61     gdcmijpeg12
62     gdcmijpeg16
63     Wsock32.lib   #doesn't exist on cygwin
64   )
65 ENDIF(UNIX)
66
67 #The following is not working because when a header file is not found it tries 
68 #to find one in the binary dir
69 #INSTALL_FILES(/include .h ${libgdcm_la_SOURCES})
70 INSTALL_FILES(/include "\\.h$")
71
72 INSTALL_TARGETS(/lib/ gdcm)