message( FATAL_ERROR "${MODULE} could not find ELASTIX_USE_FILE. Use the SuperBuild or manually point the ELASTIX_USE_FILE CMake variable to the UseElastix.cmake file in the root of your local elastix build tree.")
endif()
if( NOT EXISTS ${ELASTIX_USE_FILE})
set( ELASTIX_DIR "" CACHE PATH "Path to elastix build folder")
message(FATAL_ERROR "Could not find UseElastix.cmake. Point ELASTIX_DIR to folder containing UseElastix.cmake or use SuperBuild.")