]> Creatis software - gdcm.git/blob - src/CMakeLists.txt
ENH: Get rid of -Wall / -W / -pedantic if present this should get rid of the warnings...
[gdcm.git] / src / CMakeLists.txt
1 #-----------------------------------------------------------------------------
2 # Rebuild gdcm whenever a file starting with gdcm* is modified
3 INCLUDE_REGULAR_EXPRESSION("^gdcm.*$")
4
5 # Build jpeg lib first:
6 SUBDIRS(gdcmjpeg)
7
8 # "jpeglib.h" is defined here:
9 INCLUDE_DIRECTORIES(
10   ${GDCM_SOURCE_DIR}/src
11   ${GDCM_BINARY_DIR}/ #for gdcmConfigure.h
12   ${GDCM_BINARY_DIR}/src #for gdcmjpeg 8, 12 and 16 
13 )
14
15 SET(libgdcm_la_SOURCES
16    gdcmBinEntry.cxx
17    gdcmDebug.cxx
18    gdcmDicomDir.cxx
19    gdcmDicomDirElement.cxx
20    gdcmDicomDirImage.cxx
21    gdcmDicomDirMeta.cxx
22    gdcmDicomDirObject.cxx
23    gdcmDicomDirPatient.cxx
24    gdcmDicomDirSerie.cxx
25    gdcmDicomDirStudy.cxx
26    gdcmDict.cxx
27    gdcmDictEntry.cxx
28    gdcmDictSet.cxx
29    gdcmDirList.cxx
30    gdcmDocEntry.cxx
31    gdcmDocEntryArchive.cxx
32    gdcmDocEntrySet.cxx
33    gdcmDocument.cxx
34    gdcmElementSet.cxx
35    gdcmException.cxx
36    gdcmFile.cxx
37    gdcmGlobal.cxx
38    gdcmHeader.cxx
39    gdcmJPEGFragment.cxx
40    gdcmJPEGFragmentsInfo.cxx
41    gdcmJpeg8.cxx
42    gdcmJpeg12.cxx
43    gdcmJpeg16.cxx
44    gdcmJpeg2000.cxx
45    gdcmPixelReadConvert.cxx
46    gdcmPixelWriteConvert.cxx
47    gdcmRLEFrame.cxx
48    gdcmRLEFramesInfo.cxx
49    gdcmSeqEntry.cxx
50    gdcmSerieHeader.cxx
51    gdcmSQItem.cxx
52    gdcmTS.cxx
53    gdcmUtil.cxx
54    gdcmValEntry.cxx   
55    gdcmVR.cxx
56    ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
57    )
58
59 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES} )
60 TARGET_LINK_LIBRARIES(gdcm 
61   gdcmjpeg8 
62   gdcmjpeg12
63   gdcmjpeg16
64 )
65 IF(WIN32)
66   IF(NOT BORLAND)
67     TARGET_LINK_LIBRARIES(gdcm Wsock32)
68   ENDIF(NOT BORLAND)
69 ENDIF(WIN32)
70
71 #The following is not working because when a header file is not found it tries 
72 #to find one in the binary dir
73 #INSTALL_FILES(/include .h ${libgdcm_la_SOURCES})
74 INSTALL_FILES(/include "\\.h$")
75
76 INSTALL_TARGETS(/lib/ gdcm)