]> Creatis software - gdcm.git/blob - src/CMakeLists.txt
ENH: Move the old setup.py to its new home
[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 #  ${GDCM_BINARY_DIR}/src/jpeg/libijg8  #created a build time
10 #  ${GDCM_BINARY_DIR}/src/jpeg/libijg12 #created a build time
11 )
12
13 SET(libgdcm_la_SOURCES
14    gdcmBinEntry.cxx
15    gdcmDebug.cxx
16    gdcmDicomDir.cxx
17    gdcmDicomDirElement.cxx
18    gdcmDicomDirImage.cxx
19    gdcmDicomDirMeta.cxx
20    gdcmDicomDirObject.cxx
21    gdcmDicomDirPatient.cxx
22    gdcmDicomDirSerie.cxx
23    gdcmDicomDirStudy.cxx
24    gdcmDict.cxx
25    gdcmDictEntry.cxx
26    gdcmDictSet.cxx
27    gdcmDirList.cxx
28    gdcmDocEntry.cxx
29    gdcmDocEntrySet.cxx
30    gdcmDocument.cxx
31    gdcmElementSet.cxx
32    gdcmException.cxx
33    gdcmFile.cxx
34    gdcmGlobal.cxx
35    gdcmHeader.cxx
36    gdcmHeaderHelper.cxx
37    gdcmJpeg8.cxx
38    gdcmJpeg12.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     gdcmljpeg     # JPEG lib from xmedcom 
57   )
58 ELSE(UNIX)
59   TARGET_LINK_LIBRARIES(gdcm 
60     gdcmijpeg8 
61     gdcmijpeg12
62     gdcmljpeg
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 FILES gdcmIdo.h iddcmjpeg.h)
71 INSTALL_FILES(/include "\\.h$")
72
73 INSTALL_TARGETS(/lib/ gdcm)