]> Creatis software - clitk.git/blob - common/CMakeLists.txt
Cleared CMake files, removed LINK_LIBRARIES (deprecated) and prepared for packaging...
[clitk.git] / common / CMakeLists.txt
1 #=========================================================
2 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${ITK_DIR}/gdcm/src/")
3
4 #=========================================================
5 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/common.cmake)
6 #=========================================================
7
8 #=========================================================
9 # make clitk libraries*
10 CONFIGURE_FILE(clitkConfiguration.h.in ${PROJECT_BINARY_DIR}/clitkConfiguration.h)
11
12 SET(clitkCommon_SRC
13   clitkCommon.cxx 
14   clitkListOfPair.cxx
15   clitkTimer.cxx
16   clitkImageCommon.cxx
17   clitkIO.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   clitkOrientation.cxx
28   vvImage.cxx
29   clitkImageToImageGenericFilterBase.cxx
30 )  
31
32 ADD_LIBRARY(clitkCommon STATIC ${clitkCommon_SRC})
33 TARGET_LINK_LIBRARIES(clitkCommon vtkCommon vtkImaging ITKBasicFilters)
34
35 ADD_LIBRARY(clitkDicomRTStruct STATIC
36   clitkDicomRT_Contour.cxx
37   clitkDicomRT_ROI.cxx
38   clitkDicomRT_StructureSet.cxx
39   clitkDicomRT_ROI_ConvertToImageFilter.cxx
40 )
41
42 #ADD_LIBRARY(clitkCommonShared SHARED ${clitkCommon_SRC})
43 #SET_TARGET_PROPERTIES(clitkCommonShared PROPERTIES COMPILE_FLAGS -fPIC)