]> Creatis software - gdcm.git/blob - src/CMakeLists.txt
* src/gdcmDocEntry.cxx : remove the copy of the DictEntry... there isn't
[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    gdcmDocEntryArchive.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    gdcmJPEGFragment.cxx
38    gdcmJPEGFragmentsInfo.cxx
39    gdcmJpeg8.cxx
40    gdcmJpeg12.cxx
41    gdcmJpeg16.cxx
42    gdcmJpeg2000.cxx
43    gdcmPixelConvert.cxx
44    gdcmRLEFrame.cxx
45    gdcmRLEFramesInfo.cxx
46    gdcmSeqEntry.cxx
47    gdcmSQItem.cxx
48    gdcmTS.cxx
49    gdcmUtil.cxx
50    gdcmValEntry.cxx   
51    gdcmVR.cxx
52    ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
53    )
54
55 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
56 TARGET_LINK_LIBRARIES(gdcm 
57   gdcmjpeg8 
58   gdcmjpeg12
59   gdcmjpeg16
60 )
61 IF(WIN32)
62   IF(NOT BORLAND)
63     TARGET_LINK_LIBRARIES(gdcm Wsock32)
64   ENDIF(NOT BORLAND)
65 ENDIF(WIN32)
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)