templates: generated header files for connectors This commit adds FROM_HEADER and TO_HEADER information for global connectors missing this information. This resolves the issue of having to declare the generated connector functions manually in user code. An example, where this was done properly before is seL4GPIOServer. The changes were also done in a way, that header information are generated recursively if other connectors are reused, example being get_notification.template.c/h in seL4Ethdriver. Lastly global-connectors.cmake was adapted to include a foreach loop for those connectors providing templates with FROM, FROM_HEADER, TO and TO_HEADER information. Signed-off-by: Thomas Wittal <thomas.wittal@hensoldt-cyber.de>
This repository contains a collection of reusable CAmkES components and interfaces.
To include components and interfaces from this repository ensure that global-components.cmake is included in your project. An example is below.
find_file(GLOBAL_COMPONENTS_PATH global-components.cmake PATHS ${CMAKE_SOURCE_DIR}/projects/global-components/ CMAKE_FIND_ROOT_PATH_BOTH) mark_as_advanced(FORCE GLOBAL_COMPONENTS_PATH) if("${GLOBAL_COMPONENTS_PATH}" STREQUAL "GLOBAL_COMPONENTS_PATH-NOTFOUND") message(FATAL_ERROR "Failed to find global-components.cmake. Consider cmake -DGLOBAL_COMPONENTS_PATH=/path/to/global-components.cmake") endif() include(${GLOBAL_COMPONENTS_PATH})