2 #! \brief Add a custom test for MITK module
4 #! \param test_name Unique identifier for the test
5 #! \param test_function Name of the test function (the one with the argc,argv signature)
7 #! Additional parameters will be passed as command line parameters to the test.
11 if (BUILD_TESTING AND MODULE_IS_ENABLED)
12 add_test(${test_name} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${TESTDRIVER} ${test_function} ${ARGN})
13 set_property(TEST ${test_name} PROPERTY LABELS ${MODULE_SUBPROJECTS} MITK)
mitkAddCustomModuleTest(test_name, test_function)
Add a custom test for MITK module.