Computer Assited Medical Intervention Tool Kit  version 4.0
CamiTKParseTestAdd.h
Go to the documentation of this file.
19  parse_arguments(CAMITK_PARSE_TEST_ADD
20  "NAMELEVELDESCRIPTION" # possible lists
21  "" #possible options
22  ${ARGN}
23  )
24 
25  # Test required inputs have been given to the macro
26  if(NOT DEFINED CAMITK_PARSE_TEST_ADD_NAME)
27  message(FATAL_ERROR "camitk_parse_test_add: the name is required")
28  endif()
29  if(NOT DEFINED CAMITK_PARSE_TEST_ADD_LEVEL)
30  message(FATAL_ERROR "camitk_parse_test_add: the level is required")
31  endif()
32  if(NOT DEFINED CAMITK_PARSE_TEST_ADD_DESCRIPTION)
33  message(FATAL_ERROR "camitk_parse_test_add: the description is required")
34  endif()
35 
36  # Store these information as a new entry of test level
37  set(CAMITK_EXTENSIONS_TESTS_LEVEL ${CAMITK_EXTENSIONS_TESTS_LEVEL} "|- style=\"background-color: #EEEEEE\" \\n" CACHE INTERNAL "")
38  set(CAMITK_EXTENSIONS_TESTS_LEVEL ${CAMITK_EXTENSIONS_TESTS_LEVEL} "| style=\"width: 35%\" |${CAMITK_PARSE_TEST_ADD_NAME} \\n" CACHE INTERNAL "")
39  set(CAMITK_EXTENSIONS_TESTS_LEVEL ${CAMITK_EXTENSIONS_TESTS_LEVEL} "| style=\"width: 15%\" |'''${CAMITK_PARSE_TEST_ADD_LEVEL}''' \\n" CACHE INTERNAL "")
40  set(CAMITK_EXTENSIONS_TESTS_LEVEL ${CAMITK_EXTENSIONS_TESTS_LEVEL} "|| ${CAMITK_PARSE_TEST_ADD_DESCRIPTION} \\n\\n" CACHE INTERNAL "")
41 
42 end(){)
const char * description
Definition: applications/cepgenerator/main.cpp:37
parse_arguments()
macro parse_arguments is a fork from CMakeMacroParseArguments see http://www.cmake.org/Wiki/CMakeMacroParseArguments for more information
Definition: ParseArguments.h:13
camitk_parse_test_add()
macro camitk_parse_test_add adds an extension (action or component) automatic test level information ...
Definition: CamiTKParseTestAdd.h:18