Computer Assited Medical Intervention Tool Kit  version 5.0
CamiTKTestCompareFile.h File Reference

Go to the source code of this file.

Functions

 get_filename_component (OUTFILE ${CAMITK_TEST_PASS_FILE} NAME) set(CAMITK_TEST_COMMAND_OUTPUT_FILE $
 This CMake file run a command that is supposed to produce an output file, and then compare this output file to a given file Use this file to test if a command produces the same output file as a given expected file. More...
 

Function Documentation

◆ get_filename_component()

get_filename_component ( OUTFILE ${CAMITK_TEST_PASS_FILE}  NAME)

This CMake file run a command that is supposed to produce an output file, and then compare this output file to a given file Use this file to test if a command produces the same output file as a given expected file.

Note
You have to call camitk_test_init(..) first to prepare all variables

Inspired from http://stackoverflow.com/questions/3305545/how-to-adapt-my-unit-tests-to-cmake-and-ctest and http://www.cmake.org/pipermail/cmake/2009-July/030619.html

Referenced by camitk_communityedition_packaging().

+ Here is the caller graph for this function: