Computer Assisted Medical Intervention Tool Kit  version 5.2
CamiTKParseTestAdd.h
Go to the documentation of this file.
19 
20  set(options "")
21  set(oneValueArgs NAME LEVEL DESCRIPTION)
22  set(multiValueArgs "")
23  cmake_parse_arguments(CAMITK_PARSE_TEST_ADD "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
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(){)
if(${CMAKE_VERSION} VERSION_GREATER "3.3" OR ${CMAKE_VERSION} VERSION_EQUAL "3.3") option(CAMITK_INCLUDE_WHAT_YOU_USE "Enable the header analysis on you code
cmake modules macros camitk test endif() add_custom_target(camitk-ce-iwyu COMMAND $
Definition: CamiTKIncludeWhatYouUse.h:37
iwyu out CACHE PATH Output filename for include what you use set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${IWYU_EXECUTABLE}) if(NOT EXISTS $
Definition: CamiTKIncludeWhatYouUse.h:22
const char * description
Definition: applications/cepgenerator/main.cpp:38
camitk_parse_test_add()
macro camitk_parse_test_add adds an extension (action or component) automatic test level information ...
Definition: CamiTKParseTestAdd.h:18