X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FCMakeLists.txt;h=bc11149ad3982d7f10f7519d43769c8c8ea40575;hb=c93a32f96e61514b8b945d515ffcf11c2a12ae66;hp=6f602cd295cb8e64bf7be2f60c8879fda65fc370;hpb=1ad955c1be07763bfa07d0a00e8a421807357385;p=clitk.git diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 6f602cd..bc11149 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -31,10 +31,17 @@ SET(clitkCommon_SRC clitkImageToImageGenericFilterBase.cxx clitkExceptionObject.cxx clitkFilterBase.cxx + clitkMemoryUsage.cxx ) +### Declare clitkCommon library ADD_LIBRARY(clitkCommon STATIC ${clitkCommon_SRC}) -TARGET_LINK_LIBRARIES(clitkCommon vtkCommon vtkImaging vtkHybrid ITKBasicFilters) + +IF(NOT ${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") + TARGET_LINK_LIBRARIES(clitkCommon statgrab) +ENDIF(NOT ${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") + +TARGET_LINK_LIBRARIES(clitkCommon vtkCommon vtkImaging ITKBasicFilters) ADD_LIBRARY(clitkDicomRTStruct STATIC clitkDicomRT_Contour.cxx @@ -43,5 +50,7 @@ ADD_LIBRARY(clitkDicomRTStruct STATIC clitkDicomRT_ROI_ConvertToImageFilter.cxx ) +TARGET_LINK_LIBRARIES(clitkDicomRTStruct vtkHybrid) + #ADD_LIBRARY(clitkCommonShared SHARED ${clitkCommon_SRC}) #SET_TARGET_PROPERTIES(clitkCommonShared PROPERTIES COMPILE_FLAGS -fPIC)