]> Creatis software - clitk.git/blob - common/CMakeLists.txt
GateAsciiImageIO is now cross-platform using itksys::RegularExpression
[clitk.git] / common / CMakeLists.txt
1 #=========================================================
2 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/common.cmake)
3 #=========================================================
4
5 #=========================================================
6 # make clitk libraries*
7 CONFIGURE_FILE(clitkConfiguration.h.in ${PROJECT_BINARY_DIR}/clitkConfiguration.h)
8
9 SET(clitkCommon_SRC
10   clitkCommon.cxx 
11   clitkListOfPair.cxx
12   clitkTimer.cxx
13   clitkImageCommon.cxx
14   clitkTransformUtilities.cxx
15   clitkIO.cxx
16   clitkGateAsciiImageIO.cxx
17   clitkGateAsciiImageIOFactory.cxx
18   clitkVoxImageIO.cxx  
19   clitkVoxImageIOFactory.cxx
20   clitkVfImageIO.cxx  
21   clitkVfImageIOFactory.cxx
22   clitkHisImageIO.cxx  
23   clitkHisImageIOFactory.cxx
24   clitkXdrImageIOReader.cxx  
25   clitkXdrImageIOWriter.cxx  
26   clitkXdrImageIOFactory.cxx
27   clitkHndImageIO.cxx
28   clitkHndImageIOFactory.cxx
29   clitkDicomRTDoseIO.cxx
30   clitkDicomRTDoseIOFactory.cxx
31   clitkOrientation.cxx
32   clitkImageToImageGenericFilterBase.cxx
33   clitkExceptionObject.cxx
34   clitkFilterBase.cxx
35   clitkMemoryUsage.cxx
36   vvImage.cxx
37   vvImageReader.cxx
38   vvImageWriter.cxx
39 )
40
41 ### Declare clitkCommon library
42 ADD_LIBRARY(clitkCommon STATIC ${clitkCommon_SRC})
43
44 IF(NOT ${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
45   TARGET_LINK_LIBRARIES(clitkCommon statgrab)
46 ENDIF(NOT ${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
47
48 TARGET_LINK_LIBRARIES(clitkCommon vtkCommon vtkImaging ${ITK_LIBRARIES})
49
50 ADD_LIBRARY(clitkDicomRTStruct STATIC
51   clitkDicomRT_Contour.cxx
52   clitkDicomRT_ROI.cxx
53   clitkDicomRT_StructureSet.cxx
54   clitkDicomRTStruct2ImageFilter.cxx
55 )
56
57 TARGET_LINK_LIBRARIES(clitkDicomRTStruct vtkHybrid) 
58
59 #ADD_LIBRARY(clitkCommonShared SHARED ${clitkCommon_SRC})
60 #SET_TARGET_PROPERTIES(clitkCommonShared PROPERTIES COMPILE_FLAGS -fPIC)
61