set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/tests/bin)
- FIND_PATH(CLITK_DATA_PATH data)
+ # default data path is searched in the project source tree
+ FIND_PATH(CLITK_DATA_PATH data PATHS ${PROJECT_SOURCE_DIR})
IF (CLITK_DATA_PATH STREQUAL "CLITK_DATA_PATH-NOTFOUND")
MESSAGE(FATAL_ERROR "Data path must be given when tests are enabled.")
ENDIF (CLITK_DATA_PATH STREQUAL "CLITK_DATA_PATH-NOTFOUND")
+ set(CLITK_DATA_PATH ${CLITK_DATA_PATH}/data)
ADD_DEFINITIONS(-DCLITK_DATA_PATH='"${CLITK_DATA_PATH}"')
ADD_SUBDIRECTORY(tools)
WRAP_GGO(clitkMIP_GGO_C clitkMIP.ggo)
ADD_LIBRARY(clitkMIPLib clitkMIPGenericFilter.cxx ${clitkMIP_GGO_C})
+WRAP_GGO(clitkMedianImageFilter_GGO_C clitkMedianImageFilter.ggo)
+ADD_LIBRARY(clitkMedianImageFilterLib clitkMedianImageGenericFilter.cxx ${clitkMedianImageFilter_GGO_C})
+
IF (CLITK_BUILD_TOOLS)
WRAP_GGO(clitkDicomInfo_GGO_C clitkDicomInfo.ggo)
ADD_EXECUTABLE(clitkDicomInfo clitkDicomInfo.cxx ${clitkDicomInfo_GGO_C})
SET(vvToolExtractLung_LIBS clitkSegmentationGgoLib)
SET(vvToolCropImage_LIBS clitkCropImageLib)
SET(vvToolMIP_LIBS clitkMIPLib)
+SET(vvToolMedianFilter_LIBS clitkMedianImageFilterLib)
+SET(vvToolImageArithm_LIBS clitkImageArithmImageLib)
#=========================================================
# List of vv source files