Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkFunctionAddTestLabel.cmake
Go to the documentation of this file.
1 #
2 # Use to attach a CTest/CDash label to a test (already added via ADD_TEST)
3 #
4 # Call with or without an explicit second parameter. If no second parameter is given,
5 # ${MITK_DEFAULT_SUBPROJECTS} will be used as standard label
6 #
7 function(mitkFunctionAddTestLabel test_name)
8  set(label ${MITK_DEFAULT_SUBPROJECTS})
9  if(ARGN)
10  set(label ${ARGN})
11  endif()
12  set_property(TEST ${test_name} APPEND PROPERTY LABELS ${label})
13 endfunction(mitkFunctionAddTestLabel)
14 
15 
mitkFunctionAddTestLabel(test_name)