]> Creatis software - gdcm.git/blob - src/CMakeLists.txt
* class gdcmObject is now called gdcmDicomDirObject (less confusing name)
[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}/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
11 )
12
13 SET(libgdcm_la_SOURCES
14    gdcmDirList.cxx
15    gdcmDebug.cxx
16    gdcmDict.cxx
17    gdcmDictEntry.cxx
18    gdcmDictSet.cxx
19    gdcmException.cxx
20    gdcmGlobal.cxx
21    gdcmJpeg12.cxx
22    gdcmJpeg2000.cxx
23    gdcmJpeg.cxx
24    gdcmTS.cxx
25    gdcmUtil.cxx
26    gdcmVR.cxx
27    gdcmFile.cxx
28    gdcmHeader.cxx
29    gdcmHeaderHelper.cxx
30    gdcmParsePixels.cxx
31    gdcmRLE.cxx
32    gdcmDocEntry.cxx
33    gdcmDocEntrySet.cxx
34    gdcmBinEntry.cxx
35    gdcmSeqEntry.cxx
36    gdcmSQItem.cxx
37    gdcmElementSet.cxx
38    gdcmValEntry.cxx   
39    gdcmDicomDirElement.cxx
40    gdcmDocument.cxx
41    gdcmDicomDir.cxx
42    gdcmDicomDirMeta.cxx
43    gdcmDicomDirPatient.cxx
44    gdcmDicomDirStudy.cxx
45    gdcmDicomDirSerie.cxx
46    gdcmDicomDirImage.cxx
47    gdcmDicomDirObject.cxx
48    )
49
50 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
51 IF(UNIX)
52   TARGET_LINK_LIBRARIES(gdcm 
53     gdcmijpeg8 
54     gdcmijpeg12
55     gdcmljpeg     # JPEG lib from xmedcom 
56   )
57 ELSE(UNIX)
58   TARGET_LINK_LIBRARIES(gdcm 
59     gdcmijpeg8 
60     gdcmijpeg12
61     gdcmljpeg
62     Wsock32.lib   #doesn't exist on cygwin
63   )
64 ENDIF(UNIX)
65
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$")
71
72 INSTALL_TARGETS(/lib/ gdcm)