]> Creatis software - gdcm.git/blob - src/CMakeLists.txt
To prepare use of progression bar in all types of Document
[gdcm.git] / src / CMakeLists.txt
1 #-----------------------------------------------------------------------------
2 # Rebuild gdcm whenever a file starting with gdcm* is modified
3 INCLUDE_REGULAR_EXPRESSION("^gdcm.*$")
4
5 SUBDIRS(
6   gdcmjpeg
7   #gdcmmpeg2
8   #gdcmjpegls
9   gdcmopenjpeg
10   )
11
12 # "jpeglib.h" is defined here:
13 INCLUDE_DIRECTORIES(
14   ${GDCM_SOURCE_DIR}/src
15   ${GDCM_SOURCE_DIR}/src/gdcmmpeg2/src/mpeg2dec
16   ${GDCM_BINARY_DIR} #for gdcmConfigure.h
17   ${GDCM_BINARY_DIR}/src #for gdcmjpeg 8, 12 and 16 
18   ${GDCM_SOURCE_DIR}/src/gdcmopenjpeg/libopenjpeg
19 )
20
21 SET(libgdcm_la_SOURCES
22    gdcmArgMgr.cxx
23    gdcmBase.cxx
24    gdcmCallbackCommand.cxx
25    gdcmCommand.cxx
26    gdcmCommandManager.cxx
27    gdcmDataEntry.cxx
28    gdcmDebug.cxx
29    gdcmDicomDir.cxx
30    gdcmDicomDirElement.cxx
31    gdcmDicomDirImage.cxx
32    gdcmDicomDirMeta.cxx
33    gdcmDicomDirObject.cxx
34    gdcmDicomDirPatient.cxx
35    gdcmDicomDirVisit.cxx
36    gdcmDicomDirSerie.cxx
37    gdcmDicomDirStudy.cxx
38    gdcmDict.cxx
39    gdcmDictEntry.cxx
40    gdcmDictGroupName.cxx
41    gdcmDictSet.cxx
42    gdcmDirList.cxx
43    gdcmDocEntry.cxx
44    gdcmDocEntryArchive.cxx
45    gdcmDocEntrySet.cxx
46    gdcmDocument.cxx
47    gdcmElementSet.cxx
48    gdcmException.cxx
49    gdcmFile.cxx
50    gdcmFileHelper.cxx
51    gdcmGlobal.cxx
52    gdcmJPEGFragment.cxx
53    gdcmJPEGFragmentsInfo.cxx
54    gdcmJpeg8.cxx
55    gdcmJpeg12.cxx
56    gdcmJpeg16.cxx
57    gdcmJpeg2000.cxx
58    #gdcmMpeg.cxx
59    gdcmOrientation.cxx
60    gdcmPixelReadConvert.cxx
61    gdcmPixelWriteConvert.cxx
62    gdcmRefCounter.cxx
63    gdcmRLEFrame.cxx
64    gdcmRLEFramesInfo.cxx
65    gdcmSeqEntry.cxx
66    gdcmSerieHelper.cxx
67    gdcmSQItem.cxx
68    gdcmTS.cxx
69    gdcmUtil.cxx
70    gdcmValidator.cxx
71    gdcmVR.cxx
72    ${GDCM_BINARY_DIR}/src/gdcmDefaultDicts.cxx
73    )
74
75 ADD_LIBRARY(gdcm ${libgdcm_la_SOURCES})
76 TARGET_LINK_LIBRARIES(gdcm 
77   gdcmjpeg8 
78   gdcmjpeg12
79   gdcmjpeg16
80   #gdcmmpeg2
81   gdcmopenjpeg
82 )
83 IF(WIN32)
84   IF(NOT BORLAND)
85     TARGET_LINK_LIBRARIES(gdcm wsock32 snmpapi)
86   ENDIF(NOT BORLAND)
87 ENDIF(WIN32)
88
89 # Need nsl to resolve gethostbyname on SunOS-5.8
90 # and socket also
91 IF(CMAKE_SYSTEM MATCHES "SunOS.*")
92   TARGET_LINK_LIBRARIES(gdcm socket nsl)
93 ENDIF(CMAKE_SYSTEM MATCHES "SunOS.*")
94
95 INSTALL_FILES(/include/gdcm "\\.h$")
96 INSTALL_TARGETS(/lib/gdcm/ gdcm)