Skip to content
Snippets Groups Projects
Commit 9587b8b1 authored by Kasper Marstal's avatar Kasper Marstal
Browse files

ENH: ElastixFilter tests for 2D, 3D, 4D, translation-, euler-, affine- and nonrigid registration

Also introduces the “SUPERELATIX_RUN_LONG_TESTS” option that disables
long running tests by default (e.g. 3D and 4D registration tests)
parent 597b685f
No related branches found
No related tags found
No related merge requests found
Showing
with 290 additions and 98 deletions
......@@ -22,6 +22,8 @@ if( ${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC )
include( elxWinConfig )
endif()
set( ELASTIX_USE_FILE "/Users/kasper/Development/build/SuperElastix/Elastix-build/src/UseElastix.cmake" )
# ---------------------------------------------------------------------
# ITK
......@@ -46,16 +48,9 @@ elxmodule_enable( ModuleElastix )
# ---------------------------------------------------------------------
# Testing
# Testing requires CMake version 2.8.11 to download test data
if( CMAKE_VERSION VERSION_LESS 2.8.11 )
set( SUPERELASTIX_BUILD_TESTING_DEFAULT OFF )
message( STATUS "ELASTIX_BUILD_TESTING is set to OFF because CMake version is less than 2.8.11" )
else()
set( SUPERELASTIX_BUILD_TESTING_DEFAULT ON )
endif()
option( SUPERELASTIX_BUILD_TESTING "Enable building tests." ${SUPERELASTIX_BUILD_TESTING_DEFAULT} )
option( SUPERELASTIX_BUILD_TESTING "Enable building tests." ON )
if( ${SUPERELASTIX_BUILD_TESTING} )
option( SUPERELASTIX_RUN_LONG_TESTS OFF )
enable_testing()
add_subdirectory( Testing )
endif()
......
......@@ -10,6 +10,11 @@ set( ElastixUnitTestFilenames
elxComponentInterfaceTest.cxx
)
# ---------------------------------------------------------------------
# Options
if( SUPERELASTIX_RUN_LONG_TESTS )
add_definitions( -DSUPERELASTIX_RUN_LONG_TESTS )
endif()
# ---------------------------------------------------------------------
# Set data directories
......
58e10b6898a5d5271a890eecf25093c2
073df8eb397d1746d2343c78dd4bd964
\ No newline at end of file
073df8eb397d1746d2343c78dd4bd964
9967b9c9bae3af9c3aac9676663ee05d
646be5659d98e7cef40b63b3dff86726
610392a128986d934dfc0a1b0dc27e91
\ No newline at end of file
610392a128986d934dfc0a1b0dc27e91
eefa617b3220c1cea47bdc4672541b2d
d3568c0d5c44afedb78305f620c0a79b
034e616e71ade1535cba4a77180ad79d
\ No newline at end of file
49129770e7152ea5d203a519ac17be43
\ No newline at end of file
25de5707b18c0c684fd5fa30351bf787
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment