1 #=========================================================
2 INCLUDE(${PROJECT_SOURCE_DIR}/cmake/common.cmake)
3 #=========================================================
5 #=========================================================
6 # make clitk libraries*
7 CONFIGURE_FILE(clitkConfiguration.h.in ${PROJECT_BINARY_DIR}/clitkConfiguration.h)
14 clitkTransformUtilities.cxx
17 clitkVoxImageIOFactory.cxx
19 clitkVfImageIOFactory.cxx
21 clitkHisImageIOFactory.cxx
22 clitkXdrImageIOReader.cxx
23 clitkXdrImageIOWriter.cxx
24 clitkXdrImageIOFactory.cxx
26 clitkHndImageIOFactory.cxx
27 clitkDicomRTDoseIO.cxx
28 clitkDicomRTDoseIOFactory.cxx
31 clitkImageToImageGenericFilterBase.cxx
32 clitkExceptionObject.cxx
36 ### if LIBSTATGRAB is installed, add clitkMemoryUsage.cxx in the library
38 FIND_PROGRAM(LIBSTATGRAB NAMES statgrab PATHS)
39 IF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
40 MESSAGE( FATAL_ERROR "libstatgrab NOT FOUND -> please install http://www.i-scream.org/libstatgrab/")
41 ELSE (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
42 SET(clitkCommon_SRC ${clitkCommon_SRC} clitkMemoryUsage.cxx)
43 ENDIF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND")
44 ENDIF(CLITK_MEMORY_INFO)
46 ### Declare clitkCommon library
47 ADD_LIBRARY(clitkCommon STATIC ${clitkCommon_SRC})
49 ### Add libstatgrab if needed
51 TARGET_LINK_LIBRARIES(clitkCommon statgrab)
52 ENDIF(CLITK_MEMORY_INFO)
54 TARGET_LINK_LIBRARIES(clitkCommon vtkCommon vtkImaging vtkHybrid ITKBasicFilters)
56 ADD_LIBRARY(clitkDicomRTStruct STATIC
57 clitkDicomRT_Contour.cxx
59 clitkDicomRT_StructureSet.cxx
60 clitkDicomRT_ROI_ConvertToImageFilter.cxx
63 #ADD_LIBRARY(clitkCommonShared SHARED ${clitkCommon_SRC})
64 #SET_TARGET_PROPERTIES(clitkCommonShared PROPERTIES COMPILE_FLAGS -fPIC)