]> Creatis software - clitk.git/blob - tests/tools/CMakeLists.txt
test for binarizeImage FG, lower 0.1556
[clitk.git] / tests / tools / CMakeLists.txt
1 include_directories(
2   ${PROJECT_SOURCE_DIR}/common
3   ${PROJECT_SOURCE_DIR}/tools
4   ${GTEST_DIR}/include
5 )
6
7 SET (CUSTOM_TEST_SRC
8   clitkImageInfoTest.cxx
9   vvMainTest.cxx
10 )
11
12 SET(BUILDNAME ${BUILDNAME}_tools CACHE INTERNAL DOCSTRING)
13 ADD_DEFINITIONS(-DCLITK_TEST_TOOLS_PATH=\"${PROJECT_BINARY_DIR}/bin/\")
14 SET (srcs
15   toolTestRunner.cxx
16 )
17
18 ADD_EXECUTABLE(toolTestRunner ${srcs})
19 TARGET_LINK_LIBRARIES(toolTestRunner vvLib ${vvExternalLibs})
20 SET(exe ${EXECUTABLE_OUTPUT_PATH}/toolTestRunner) 
21 SET(p ${CLITK_TEST_DATA_PATH})
22 SET(tmpFile "feve51zd")
23 #=========================================================
24 # clitkImageInfo
25 ADD_TEST(clitkImageInfo_4d    ${exe} clitkImageInfo ${p}Deformation4D.mhd ${p}Deformation4D_ref.info)
26 ADD_TEST(clitkImageInfo_3d    ${exe} clitkImageInfo ${p}Lung3D.mhd       ${p}Lung3D_ref.info)
27 #=========================================================
28 # clitkGetSpacing
29 ADD_TEST(clitkGetSpacing_4d   ${exe} clitkGetSpacing -i ${p}Deformation4D.mhd ${p}Deformation4D_ref.spacing)
30 ADD_TEST(clitkGetSpacing_3d   ${exe} clitkGetSpacing -i ${p}Lung3D.mhd       ${p}Lung3D_ref.spacing)
31 #=========================================================
32 # clitkGetOrigin
33 ADD_TEST(clitkGetOrigin_4d    ${exe} clitkGetOrigin -i ${p}Deformation4D.mhd ${p}Deformation4D_ref.origin)
34 ADD_TEST(clitkGetOrigin_3d    ${exe} clitkGetOrigin -i ${p}Lung3D.mhd       ${p}Lung3D_ref.origin)
35 #=========================================================
36 # clitkGetSize
37 ADD_TEST(clitkGetSize_4d      ${exe} clitkGetSize -i ${p}Deformation4D.mhd   ${p}Deformation4D_ref.size)
38 ADD_TEST(clitkGetSize_3d     ${exe} clitkGetSize -i ${p}Lung3D.mhd          ${p}Lung3D_ref.size)
39 #=========================================================
40 # clitkGetDirection
41 ADD_TEST(clitkGetDirection_4d ${exe} clitkGetDirection -i ${p}Deformation4D.mhd  ${p}Deformation4D_ref.direction)
42 ADD_TEST(clitkGetDirection_3d ${exe} clitkGetDirection -i ${p}Lung3D.mhd        ${p}Lung3D_ref.direction)
43 #=========================================================
44 # clitkBinarize
45 ADD_TEST(clitkBinarizeBGl0.1356_4d ${exe} clitkBinarizeImage -i ${p}Deformation4D.mhd --mode BG -l 0.1356 -o Deformation4D_ref.binarizeBGl0.1356.mhd ${p}Deformation4D_ref.binarizeBGl0.1356)
46 ADD_TEST(clitkBinarizeFGl0.1556_3d ${exe} clitkBinarizeImage -i ${p}Lung3D.mhd        --mode FG -l 0.1556 -o Deformation3D_ref.binarizeFGl0.1556.mhd ${p}Deformation3D_ref.binarizeFGl0.1556)
47
48 UNSET(tmpFile)
49 UNSET(exe)
50 UNSET(p)