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