Commit 38d2ecbd authored by jcfr's avatar jcfr
Browse files

COMP: Rename LAUNCH_EXE into Slicer_LAUNCH_COMMAND

git-svn-id: http://svn.slicer.org/Slicer4/trunk@16677 3bd1e089-480b-0410-8dfb-8563597acbee
parent c00f37e7
......@@ -7,5 +7,5 @@ set_target_properties(PrettyPrintTableTest
PROPERTIES RUNTIME_OUTPUT_DIRECTORY
${BRAINSCommonLibProject_BINARY_DIR})
add_test(NAME PrettyPrintTableTest COMMAND ${LAUNCH_EXE} $<TARGET_FILE:PrettyPrintTableTest>)
add_test(NAME PrettyPrintTableTest COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:PrettyPrintTableTest>)
......@@ -34,7 +34,7 @@ target_link_libraries(SimpleDiffeomorphicRegistrationCLP BRAINSDemonWarpLIB)
add_test(
NAME ValidateLIB
COMMAND ${LAUNCH_EXE} $<TARGET_FILE:SimpleDiffeomorphicRegistrationCLP>
COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:SimpleDiffeomorphicRegistrationCLP>
${BRAINSDemonWarp_SOURCE_DIR}/TestingBRAINSDemonWarp/ANON0006_20_T1_dbg_splayed.nii.gz
${BRAINSDemonWarp_SOURCE_DIR}/TestingBRAINSDemonWarp/ANON0006_20_T1_sag_twisted.nii.gz
${BRAINSDemonWarp_BINARY_DIR}/orientedImagesDemons_lib_test.nii.gz
......
......@@ -16,12 +16,12 @@ endif(WIN32)
add_executable( BRAINSDemonWarpCLPTests BRAINSDemonWarpCLPTests.cxx ${BRAINSDemonWarp_SOURCE_DIR}/BRAINSDemonWarpPrimary.cxx)
target_link_libraries(BRAINSDemonWarpCLPTests BRAINSDemonWarpCommonLib ${BRAINSWARP_ITK_LIBS} ${OPTIONAL_DEBUG_LINK_LIBRARIES})
set_target_properties(BRAINSDemonWarpCLPTests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${BRAINSDemonWarp_BINARY_DIR})
set(BRAINS_Demon_Warp_TESTS ${LAUNCH_EXE} $<TARGET_FILE:BRAINSDemonWarpCLPTests> )
set(BRAINS_Demon_Warp_TESTS ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSDemonWarpCLPTests> )
add_executable( VBRAINSDemonWarpCLPTests VBRAINSDemonWarpCLPTests.cxx ${BRAINSDemonWarp_SOURCE_DIR}/VBRAINSDemonWarpPrimary.cxx)
target_link_libraries(VBRAINSDemonWarpCLPTests BRAINSDemonWarpCommonLib ${BRAINSWARP_ITK_LIBS} ${OPTIONAL_DEBUG_LINK_LIBRARIES})
set_target_properties(VBRAINSDemonWarpCLPTests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${BRAINSDemonWarp_BINARY_DIR})
set(VBRAINS_Demon_Warp_TESTS ${LAUNCH_EXE} $<TARGET_FILE:VBRAINSDemonWarpCLPTests> )
set(VBRAINS_Demon_Warp_TESTS ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:VBRAINSDemonWarpCLPTests> )
include(${BRAINS_CMAKE_HELPER_DIR}/MIDAS.cmake)
set(MIDAS_KEY_DIR "${PROJECT_SOURCE_DIR}/../BRAINSCommonLib/TestData")
......
......@@ -33,7 +33,7 @@ set(BRAINSCommonLib_DATA_DIRS "${PROJECT_SOURCE_DIR}/../BRAINSCommonLib/TestData
set(MIDAS_KEY_DIR "${BRAINSCommonLib_DATA_DIRS}")
set(BRAINSFitTestName BRAINSFitTest_AffineRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -61,7 +61,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_AffineRotationNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -85,7 +85,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_AffineScaleMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -112,7 +112,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_AffineScaleNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -136,7 +136,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_AffineTranslationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -163,7 +163,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_AffineTranslationNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -188,7 +188,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
set(BRAINSFitTestName BRAINSFitTest_BSplineAnteScaleRotationRescaleHeadMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -215,7 +215,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_BSplineOnlyRescaleHeadMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -246,7 +246,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
## NOTE: 7.3 above was computed explicitly through testing.
set(BRAINSFitTestName BRAINSFitTest_BSplineBSplineRescaleHeadMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -273,7 +273,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_BSplineScaleRotationRescaleHeadMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -301,7 +301,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
set(BRAINSFitTestName BRAINSFitTest_BSplineScaleRotationHistogramHeadMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -331,7 +331,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
set(BRAINSFitTestName BRAINSFitTest_RigidAnisotropicMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -351,7 +351,7 @@ ${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
)
set(BRAINSFitTestName BRAINSFitTest_RigidMedianRotationNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -376,7 +376,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_RigidRotGeomNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -400,7 +400,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_RigidRotaRotaRotNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -424,7 +424,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_RigidRotationHeadMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -449,7 +449,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_RigidRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -476,7 +476,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_RigidRotationNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -500,7 +500,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
--outputTransform ${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.mat
)
set(BRAINSFitTestName BRAINSFitTest_RigidRotationNoMasksRiginInPlaceInterp)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -526,7 +526,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
set(BRAINSFitTestName BRAINSFitTest_ScaleRotationRescaleHeadMasksNoInit)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -551,7 +551,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_ScaleSkewVersorRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 11
......@@ -578,7 +578,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_ScaleSkewVersorRotationNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 11
......@@ -602,7 +602,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_ScaleSkewVersorScaleMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -629,7 +629,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_ScaleSkewVersorScaleNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -653,7 +653,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_ScaleTranslationRescaleHeadMasksNoInit)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -679,7 +679,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_ScaleTranslationRescaleHeadMasksInit)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -705,7 +705,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_ScaleVersorRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 11
......@@ -732,7 +732,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_ScaleVersorRotationNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 11
......@@ -756,7 +756,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_ScaleVersorScaleMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -783,7 +783,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_ScaleVersorScaleNoMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -807,7 +807,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
if(Test_SignedDistanceData)
midas_add_test(NAME BRAINSFitTest_SignedDistanceData COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME BRAINSFitTest_SignedDistanceData COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{TEST_output.nii.gz.md5} ${BRAINSFit_BINARY_DIR}/Testing/TEST_output.nii.gz
BRAINSFitTest
--costMetric MMI
......@@ -824,7 +824,7 @@ midas_add_test(NAME BRAINSFitTest_SignedDistanceData COMMAND ${LAUNCH_EXE} $<TAR
endif(Test_SignedDistanceData)
set(BRAINSFitTestName BRAINSFitTest_BSplineScaleRotationHeadMasksUShort)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 2505
......@@ -852,7 +852,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_BSplineScaleRotationHistogramHeadMasksUShort)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -881,7 +881,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_NCMetricBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{test.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -904,7 +904,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_NCAffineRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -932,7 +932,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_NCScaleSkewVersorRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 11
......@@ -960,7 +960,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
set(BRAINSFitTestName BRAINSFitTest_MSEMetricBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{test.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -983,7 +983,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_MSEAffineRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -1011,7 +1011,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_MSEScaleSkewVersorRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 11
......@@ -1038,7 +1038,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_MCMetricBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{test.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -1061,7 +1061,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_MCMetricMaskBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{testMask.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.testMask.nii.gz
--compareIntensityTolerance 9
......@@ -1084,7 +1084,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_MCAffineRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -1112,7 +1112,7 @@ midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRA
)
set(BRAINSFitTestName BRAINSFitTest_MCScaleSkewVersorRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 11
......@@ -1146,7 +1146,7 @@ if(RUN_EXTRA_METRIC_TESTS)
# which is different from the other metrics, making it much harder to incorporate into the
# BRAINSFIT framework. This test and the relevant code has been commented out for now.
#set(BRAINSFitTestName BRAINSFitTest_KLMetricBrainToItself)
#add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
#add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
# --compare ${BRAINSCommonLib_DATA_DIRS}/test.nii.gz
# ${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
# --compareIntensityTolerance 9
......@@ -1175,7 +1175,7 @@ if(RUN_EXTRA_METRIC_TESTS)
# to converge even when given many iterations (which it shouldn't need, since
# it's registering the same image to itself).
set(BRAINSFitTestName BRAINSFitTest_KSMetricBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{test.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -1198,7 +1198,7 @@ if(RUN_EXTRA_METRIC_TESTS)
)
set(BRAINSFitTestName BRAINSFitTest_KSMetricBrainMaskToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{testMask.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.testMask.nii.gz
--compareIntensityTolerance 9
......@@ -1223,7 +1223,7 @@ if(RUN_EXTRA_METRIC_TESTS)
set(BRAINSFitTestName BRAINSFitTest_KSAffineRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 7
......@@ -1251,7 +1251,7 @@ if(RUN_EXTRA_METRIC_TESTS)
)
set(BRAINSFitTestName BRAINSFitTest_KSScaleSkewVersorRotationMasks)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{${BRAINSFitTestName}.result.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 11
......@@ -1279,7 +1279,7 @@ if(RUN_EXTRA_METRIC_TESTS)
# Fails to converge when registering a brain to itself.
set(BRAINSFitTestName BRAINSFitTest_MRSDMetricBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{test.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -1303,7 +1303,7 @@ if(RUN_EXTRA_METRIC_TESTS)
# Segfault when running this test
set(BRAINSFitTestName BRAINSFitTest_MIHMetricBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{test.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -1327,7 +1327,7 @@ if(RUN_EXTRA_METRIC_TESTS)
# Fails to converge when registering a brain to itself.
set(BRAINSFitTestName BRAINSFitTest_GDMetricBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{test.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -1351,7 +1351,7 @@ if(RUN_EXTRA_METRIC_TESTS)
# Segfault when running this test
set(BRAINSFitTestName BRAINSFitTest_CCHMetricBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{test.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -1375,7 +1375,7 @@ if(RUN_EXTRA_METRIC_TESTS)
# Segfault when running this test
set(BRAINSFitTestName BRAINSFitTest_MSEHMetricBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{test.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......@@ -1399,7 +1399,7 @@ if(RUN_EXTRA_METRIC_TESTS)
# Segfault when running this test
set(BRAINSFitTestName BRAINSFitTest_NMIHMetricBrainToItself)
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSFitTest>
midas_add_test(NAME ${BRAINSFitTestName} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSFitTest>
--compare MIDAS{test.nii.gz.md5}
${BRAINSFit_BINARY_DIR}/Testing/${BRAINSFitTestName}.test.nii.gz
--compareIntensityTolerance 9
......
......@@ -17,14 +17,14 @@ set(MIDAS_KEY_DIR "${PROJECT_SOURCE_DIR}/../BRAINSCommonLib/TestData")
#add_test(
# NAME BRATestImage
# COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRATestImage>
# COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRATestImage>
# ${BRAINSROIAuto_BINARY_DIR}/sphere.nii.gz
# ${BRAINSROIAuto_BINARY_DIR}/GeneratedMaskSphere.nii.gz
# )
midas_add_test(
NAME BRAINSROIAutoTest_GenerateBrainMask
COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRAINSROIAuto>
COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSROIAuto>
--inputVolume MIDAS{test.nii.gz.md5}
--outputROIMaskVolume ${TESTING_BINARY_DIR}/BRAINSROIAutoTest_GenerateBrainMask.nii.gz
--ROIAutoDilateSize 10
......@@ -34,7 +34,7 @@ set_tests_properties ( BRAINSROIAutoTest_GenerateBrainMask PROPERTIES DEPENDS BR
midas_add_test(
NAME BRAINSROIAutoTest_CompareBrainMasks
COMMAND ${LAUNCH_EXE} $<TARGET_FILE:BRATestCompare>
COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRATestCompare>
MIDAS{BRAINSROIAutoTest_GenerateBrainMask.result.nii.gz.md5}
${TESTING_BINARY_DIR}/BRAINSROIAutoTest_GenerateBrainMask.nii.gz
)
......
......@@ -14,7 +14,7 @@ target_link_libraries(BRAINSResampleTest BRAINSCommonLib ${ITK_LIBRARIES})
set_target_properties(BRAINSResampleTest PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
add_dependencies(BRAINSResampleTest BRAINSResample)
set(BRAINSResample_TESTS ${LAUNCH_EXE} $<TARGET_FILE:BRAINSResampleTest>)
set(BRAINSResample_TESTS ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:BRAINSResampleTest>)
SETIFEMPTY(MIDAS_REST_URL "http://midas.kitware.com/api/rest" CACHE STRING "The MIDAS server where testing data resides")
include(${BRAINS_CMAKE_HELPER_DIR}/MIDAS.cmake)
......
......@@ -29,8 +29,8 @@ add_executable(${CLP}Test ${CLP}Test.cxx)
add_dependencies(${CLP}Test ${CLP})
target_link_libraries(${CLP}Test ITKIO ITKBasicFilters)
set (DicomToNrrdConverterEXE ${LAUNCH_EXE} ${DicomToNrrdConverter_BINARY_DIR}/../bin/${CLP} )
set (DicomToNrrdConverter_TESTS ${LAUNCH_EXE} ${DicomToNrrdConverter_BINARY_DIR}/../bin/${CLP}Test )
set (DicomToNrrdConverterEXE ${Slicer_LAUNCH_COMMAND} ${DicomToNrrdConverter_BINARY_DIR}/../bin/${CLP} )
set (DicomToNrrdConverter_TESTS ${Slicer_LAUNCH_COMMAND} ${DicomToNrrdConverter_BINARY_DIR}/../bin/${CLP}Test )
if(NOT SETIFEMPTY)
macro(SETIFEMPTY)
......@@ -52,7 +52,7 @@ add_test(DicomToNrrdConverterTest ${DicomToNrrdConverter_TESTS}
--help
)
add_test(DicomToNrrdConverterDWICompareTest ${LAUNCH_EXE} ${DWICompareEXE}
add_test(DicomToNrrdConverterDWICompareTest ${Slicer_LAUNCH_COMMAND} ${DWICompareEXE}
--help
)
......
......@@ -27,7 +27,7 @@ set(TEMP "${Slicer_BINARY_DIR}/Testing/Temporary")
# DicomToNrrdConverter tests
add_test(
NAME ${CLP}Test
COMMAND ${LAUNCH_EXE} $<TARGET_FILE:${CLP}Test>
COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:${CLP}Test>
ModuleEntryPoint
--inputDicomDirectory ${TEST_DATA}/DWIDicom
--outputDirectory ${TEMP}
......
set(Launcher_Command ${LAUNCH_EXE})
set(Launcher_Command ${Slicer_LAUNCH_COMMAND})
if(USE_VALGRIND)
set(Launcher_Command "${Slicer_BINARY_DIR}/Scripts/runValgrindForOneModule.sh")
endif()
......
......@@ -49,7 +49,7 @@ if (BUILD_TESTING)
#SET_TARGET_PROPERTIES(ImageCompare PROPERTIES LABELS ${CLP})
set(testname ${PROJECT_NAME}_N3_Brain2D_1)
add_test(NAME ${testname} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:${PROJECT_NAME}>
add_test(NAME ${testname} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:${PROJECT_NAME}>
--inputImage
${TEST_DATA_DIR}/t81slice.nii.gz
--inputMask
......@@ -77,7 +77,7 @@ if (BUILD_TESTING)
#SET_PROPERTY(TEST ${testname} PROPERTY LABELS ${PROJECT_NAME})
set(testname ${PROJECT_NAME}_N3_Brain2D_2)
add_test(NAME ${testname} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:${PROJECT_NAME}>
add_test(NAME ${testname} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:${PROJECT_NAME}>
--inputImage
${TEST_DATA_DIR}/he3volume.nii.gz
--inputMask
......@@ -104,7 +104,7 @@ if (BUILD_TESTING)
#SET_PROPERTY(TEST ${testname} PROPERTY LABELS ${PROJECT_NAME})
set(testname ${PROJECT_NAME}_N4_Brain2D)
add_test(NAME ${testname} COMMAND ${LAUNCH_EXE} $<TARGET_FILE:${PROJECT_NAME}>
add_test(NAME ${testname} COMMAND ${Slicer_LAUNCH_COMMAND} $<TARGET_FILE:${PROJECT_NAME}>
--inputImage
${TEST_DATA_DIR}/t81slice.nii.gz
--inputMask
......