CamiTK CMake macros for generating the listing of all the CamiTK project as a build/SubProjects.cmake and build/Project.xml files. More...
Functions | |
camitk_init_manifest_data () | |
MACRO camitk_init_manifest_data initializes the global variables that will gather all the information about all the subprojects. More... | |
camitk_register_subproject () | |
macro camitk_register_subproject adds a subproject definition for the CDash report More... | |
camitk_write_manifest_data () | |
macro camitk_write_manifest_data validates the xml_subprojects variable by ending its xml tag i.e. More... | |
CamiTK CMake macros for generating the listing of all the CamiTK project as a build/SubProjects.cmake and build/Project.xml files.
These files are used by CDash and continuous integration scripts to exactly know the CMake projects to work with and their cross-dependencies.
camitk_init_manifest_data | ( | ) |
MACRO camitk_init_manifest_data initializes the global variables that will gather all the information about all the subprojects.
There are 7 types of subprojects:
Note: application actions are special actions grouped into a specific action extension. This unique action extension is mandatory for any CamiTK application to run properly (they include basic actions such as "save", "open"...)
macro camitk_init_manifest_data is called only once per CEP or per CEP Set and reset the global cache variables that are filled with XML fragment.
The CAMITK_SUBPROJECTS variable is a XML document that concatenate all these variable. CAMITK_SUBPROJECTS is used to produced the "Project.xml" file in the build directory. The "Project.xml" file is send and later parse by CDash to present Continuous Integration information by subproject.
This macro clears all the following global cache variables:
The CAMITK_TARGETS variable list all the targets. It is also used by CDash. Targets are also organized into sub categies:
This macro also clears all these global cache variables.
usage:
camitk_register_subproject | ( | ) |
macro camitk_register_subproject adds a subproject definition for the CDash report
Subprojects in CDash shows configure/build/test information by subprojects. There are 7 types of subprojects:
Note: application actions are special actions grouped into a specific action extension. This unique action extension is mandatory for any CamiTK application to run properly (they include basic actions such as "save", "open"...)
macro camitk_register_subproject is called to add one subproject and define:
This macro should be called once for each corelib, cep library component, action, and application of the CEP. This macro is called automatically by the camitk corresponding CMake macros
This macro adds an XML fragment that will be understood by CDash in the corresponding global cache variables:
Usage:
TARGET_TYPE | name the library / exe program targeted for CMake compilation |
DEPENDENCIES | (optional) the library dependencies to build the target |
camitk_write_manifest_data | ( | ) |
macro camitk_write_manifest_data
validates the xml_subprojects variable by ending its xml tag i.e.
By adding the closing </Project> xml node, this will close the xml data Then create the '${CMAKE_BINARY_DIR}/Project.xml file Use this file to send to the DashBoard to get the CEP and its subprojects definition
Usage:
CEP_SET | (optional) should be added only if this is a CEP set validation |