Commit bcefaa66 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed warnings and removed unused files

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d5dddf93
......@@ -59,6 +59,7 @@ MeshComparePlugin::MeshComparePlugin() :
......@@ -122,9 +122,6 @@ int main(int argv, char **args)
// Flag if everything went fine
bool ok = true;
// Maximal allowed deviation between two doubles
double DoubleTolerance = 0.0;
// Return if we did not get exactly two arguments
if ( argv != 3 ) {
cerr << "Wrong number of arguments!\n";
# some argument checking:
# test_cmd is the command to run with all its arguments
if( NOT test_cmd )
message( FATAL_ERROR "Variable test_cmd not defined" )
endif( NOT test_cmd )
# output_blessed contains the name of the "blessed" output file
if( NOT output_blessed )
message( FATAL_ERROR "Variable output_blessed not defined" )
endif( NOT output_blessed )
# output_test contains the name of the output file the test_cmd will produce
if( NOT output_test )
message( FATAL_ERROR "Variable output_test not defined" )
endif( NOT output_test )
# convert the space-separated string to a list
separate_arguments( test_args )
message( ${test_args} )
COMMAND ${test_cmd} ${test_args}
COMMAND ${CMAKE_COMMAND} -E compare_files ${output_blessed} ${output_test}
RESULT_VARIABLE test_not_successful
if( test_not_successful )
message( SEND_ERROR "${output_test} does not match ${output_blessed}!" )
endif( test_not_successful )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment