Computer Assited Medical Intervention Tool Kit  version 4.1
CamiTKInitManifestData.h
Go to the documentation of this file.
49 
50  if(CAMITK_EXTENSION_PROJECT_SET)
51  if(NOT CAMITK_SUBPROJECTS)
52  # This is a call to camitk_init_manifest_data from the first CEP of a CEP Set
53  camitk_init_manifest_data_reset_variables(${CAMITK_EXTENSION_PROJECT_SET_NAME})
54  endif()
55  # else: if CAMITK_SUBPROJECTS cache variable is defined, this means the variables were already reset
56  else()
57  # This is a call to camitk_init_manifest_data from a standalone CEP
58  camitk_init_manifest_data_reset_variables(${CMAKE_PROJECT_NAME})
59  endif()
60 
61 end(){)
62 
63 # Intern macro to simplify camitk_init_manifest_data
64 camitk_init_manifest_data_reset_variables(){ NAME)
65 
66  # list of all subprojects
67  set(CAMITK_TARGETS "" CACHE INTERNAL "List of all compilation targets")
68 
69  # Targets by category
70  set(CAMITK_CEP_LIBRARY_TARGETS "" CACHE STRING "List of library extension targets" FORCE)
71  set(CAMITK_COMPONENT_TARGETS "" CACHE STRING "List of component extension targets" FORCE)
72  set(CAMITK_ACTION_TARGETS "" CACHE STRING "List of action extension targets" FORCE)
73  set(CAMITK_APPLICATION_TARGETS "" CACHE STRING "List of application targets" FORCE)
74 
75  # Subproject list (XML document)
76  set(CAMITK_SUBPROJECTS "<?xml version=\"1.0\"?>\n<Project name=\"${NAME}\">" CACHE INTERNAL "XML description of all subprojects")
77 
78  # Subprojects by category (XML fragment)
79  set(CAMITK_CORE_LIBRARY_SUBPROJECTS "" CACHE INTERNAL "XML description of core library subprojects")
80  set(CAMITK_CEP_LIBRARY_SUBPROJECTS "" CACHE INTERNAL "XML description of library subprojects")
81  set(CAMITK_APPLICATION_ACTION_SUBPROJECTS "" CACHE INTERNAL "XML description of application action extension subprojects")
82  set(CAMITK_COMPONENT_SUBPROJECTS "" CACHE INTERNAL "XML description of component extension subprojects")
83  set(CAMITK_ACTION_SUBPROJECTS "" CACHE INTERNAL "XML description of action extension subprojects")
84  set(CAMITK_APPLICATION_SUBPROJECTS "" CACHE INTERNAL "XML description of application subprojects")
85 
86 end(){)
camitk_init_manifest_data()
MACRO camitk_init_manifest_data initializes the global variables that will gather all the information...
Definition: CamiTKInitManifestData.h:48
cmake modules macros camitk test endif() add_custom_target(camitk-ce-iwyu COMMAND $
Definition: CamiTKIncludeWhatYouUse.h:37