]> Creatis software - gdcm.git/blob - src/CMakeLists.txt
ENH: Final -hopefully- change to jpeg lib. In order to match ITK structure, and be...
[gdcm.git] / src / CMakeLists.txt
1 #-----------------------------------------------------------------------------
2 # Build jpeg lib first:
3 SUBDIRS(gdcmjpeg)
4
5 # "jpeglib.h" is defined here:
6 INCLUDE_DIRECTORIES(
7   ${GDCM_SOURCE_DIR}/src
8   ${GDCM_BINARY_DIR}/ #for gdcmConfigure.h
9   ${GDCM_BINARY_DIR}/src #for gdcmjpeg 8, 12 and 16 
10 )
11
12 SET(libgdcm_la_SOURCES
13    gdcmBinEntry.cxx
14    gdcmDebug.cxx
15    gdcmDicomDir.cxx
16    gdcmDicomDirElement.cxx
17    gdcmDicomDirImage.cxx
18    gdcmDicomDirMeta.cxx
19    gdcmDicomDirObject.cxx
20    gdcmDicomDirPatient.cxx
21    gdcmDicomDirSerie.cxx
22    gdcmDicomDirStudy.cxx
23    gdcmDict.cxx
24    gdcmDictEntry.cxx
25    gdcmDictSet.cxx
26    gdcmDirList.cxx
27    gdcmDocEntry.cxx
28    gdcmDocEntrySet.cxx
29    gdcmDocument.cxx
30    gdcmElementSet.cxx
31    gdcmException.cxx
32    gdcmFile.cxx
33    gdcmGlobal.cxx
34    gdcmHeader.cxx
35    gdcmHeaderHelper.cxx
36    gdcmJPEGFragment.cxx
37    gdcmJPEGFragmentsInfo.cxx
38    gdcmJpeg8.cxx
39    gdcmJpeg12.cxx
40    gdcmJpeg16.cxx
41    gdcmJpeg2000.cxx
42    gdcmPixelConvert.cxx
43    gdcmRLEFrame.cxx
44    gdcmRLEFramesInfo.cxx
45    gdcmSeqEntry.cxx
46    gdcmSQItem.cxx
47    gdcmTS.cxx
48    gdcmUtil.cxx
49    gdcmValEntry.cxx   
50    gdcmVR.cxx
51    ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
52    )
53
54 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
55 IF(UNIX)
56   TARGET_LINK_LIBRARIES(gdcm 
57     gdcmjpeg8 
58     gdcmjpeg12
59     gdcmjpeg16
60   )
61 ELSE(UNIX)
62   TARGET_LINK_LIBRARIES(gdcm 
63     gdcmjpeg8 
64     gdcmjpeg12
65     gdcmjpeg16
66     Wsock32.lib   #doesn't exist on cygwin
67   )
68 ENDIF(UNIX)
69
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$")
74
75 INSTALL_TARGETS(/lib/ gdcm)