Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkFunctionAddCustomModuleTest.cmake
Go to the documentation of this file.
1 #!
2 #! \brief Add a custom test for MITK module
3 #!
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)
6 #!
7 #! Additional parameters will be passed as command line parameters to the test.
8 #!
9 function(mitkAddCustomModuleTest test_name test_function)
10 
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)
14  endif()
15 
16 endfunction()
mitkAddCustomModuleTest(test_name, test_function)
Add a custom test for MITK module.