]> Creatis software - gdcm.git/blob - src/CMakeLists.txt
* src/gdcmDocument.cxx ftell() return properly stored in a long (i.e.
[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    gdcmJPEGFragment.cxx
36    gdcmJPEGFragmentsInfo.cxx
37    gdcmJpeg8.cxx
38    gdcmJpeg12.cxx
39    gdcmJpeg16.cxx
40    gdcmJpeg2000.cxx
41    gdcmPixelConvert.cxx
42    gdcmRLEFrame.cxx
43    gdcmRLEFramesInfo.cxx
44    gdcmSeqEntry.cxx
45    gdcmSQItem.cxx
46    gdcmTS.cxx
47    gdcmUtil.cxx
48    gdcmValEntry.cxx   
49    gdcmVR.cxx
50    )
51
52 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
53 IF(UNIX)
54   TARGET_LINK_LIBRARIES(gdcm 
55     gdcmijpeg8 
56     gdcmijpeg12
57     gdcmijpeg16
58   )
59 ELSE(UNIX)
60   TARGET_LINK_LIBRARIES(gdcm 
61     gdcmijpeg8 
62     gdcmijpeg12
63     gdcmijpeg16
64     Wsock32.lib   #doesn't exist on cygwin
65   )
66 ENDIF(UNIX)
67
68 #The following is not working because when a header file is not found it tries 
69 #to find one in the binary dir
70 #INSTALL_FILES(/include .h ${libgdcm_la_SOURCES})
71 INSTALL_FILES(/include "\\.h$")
72
73 INSTALL_TARGETS(/lib/ gdcm)