]> Creatis software - clitk.git/blob - common/CMakeLists.txt
380ce41d5c40f3afd9d6224af5202b86cc7d0b63
[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   clitkVoxImageIO.cxx  
17   clitkVoxImageIOFactory.cxx
18   clitkVfImageIO.cxx  
19   clitkVfImageIOFactory.cxx
20   clitkHisImageIO.cxx  
21   clitkHisImageIOFactory.cxx
22   clitkXdrImageIOReader.cxx  
23   clitkXdrImageIOWriter.cxx  
24   clitkXdrImageIOFactory.cxx
25   clitkHndImageIO.cxx
26   clitkHndImageIOFactory.cxx
27   clitkDicomRTDoseIO.cxx
28   clitkDicomRTDoseIOFactory.cxx
29   clitkOrientation.cxx
30   clitkImageToImageGenericFilterBase.cxx
31   clitkExceptionObject.cxx
32   clitkFilterBase.cxx
33   clitkMemoryUsage.cxx
34   vvImage.cxx
35   vvImageReader.cxx
36   vvImageWriter.cxx
37 )
38
39 IF(UNIX)
40   SET(clitkCommon_SRC
41     ${clitkCommon_SRC}
42     clitkGateAsciiImageIO.cxx
43     clitkGateAsciiImageIOFactory.cxx
44   )
45 ENDIF(UNIX)
46
47 ### Declare clitkCommon library
48 ADD_LIBRARY(clitkCommon STATIC ${clitkCommon_SRC})
49
50 IF(NOT ${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
51   TARGET_LINK_LIBRARIES(clitkCommon statgrab)
52 ENDIF(NOT ${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
53
54 TARGET_LINK_LIBRARIES(clitkCommon vtkCommon vtkImaging ${ITK_LIBRARIES})
55
56 ADD_LIBRARY(clitkDicomRTStruct STATIC
57   clitkDicomRT_Contour.cxx
58   clitkDicomRT_ROI.cxx
59   clitkDicomRT_StructureSet.cxx
60   clitkDicomRTStruct2ImageFilter.cxx
61 )
62
63 TARGET_LINK_LIBRARIES(clitkDicomRTStruct vtkHybrid) 
64
65 #ADD_LIBRARY(clitkCommonShared SHARED ${clitkCommon_SRC})
66 #SET_TARGET_PROPERTIES(clitkCommonShared PROPERTIES COMPILE_FLAGS -fPIC)
67