include(setup_paths.cmake) execute_process( WORKING_DIRECTORY ${office_dir} COMMAND getinfo${CMAKE_EXECUTABLE_SUFFIX} test/raytest_rpict.hdr OUTPUT_FILE test/raytest_falsecolor.hdr RESULT_VARIABLE res ) if(NOT ${res} EQUAL 0) message(FATAL_ERROR "Bad return value from getinfo, res = ${res}") endif() file(READ ${office_dir}/test/raytest_falsecolor.hdr test_output) if(test_output MATCHES "RADIANCE") message(STATUS "passed") else() message(STATUS "failed") endif()