From 443106f15f61ed2d3c7fc30b2b557ae7ca28ca7c Mon Sep 17 00:00:00 2001 From: Kevin F Ortega Date: Tue, 7 Jan 2025 17:00:43 -0800 Subject: [PATCH] Adding wrapper --- cmake/API.cmake | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/cmake/API.cmake b/cmake/API.cmake index 276c612e1d..64a4f626cc 100644 --- a/cmake/API.cmake +++ b/cmake/API.cmake @@ -644,6 +644,25 @@ function(register_fprime_implementation IMPLEMENTATION IMPLEMENTOR) append_list_property("${ARGN}" TARGET "${IMPLEMENTOR}" PROPERTY "REQUIRED_SOURCE_FILES") endfunction() +#### +# Adds a named os implementation. +# +# Assumptions: +# 1. NAMES is a list of 1 or more named files separated by ; +# 2. There exists a file named Default${FIRST_ITEM}, where FIRST_ITEM is the first element in NAME, in the same +# directory where this cmake function was called +# 3. For each item e listed in NAMES, there exists a file called ${e}.hpp and ${e}.cpp in the same directory +# where this cmake function was called +# +# NAMES: list of named files to add to this module. The first will be treated as the name of the module. +# i.e. File;Directory;FileSystem will contain the file, directory, and filesystem files in a module called File. +# SUFFIX: suffix to implementation (e.g. Posix) +# ARGN: extra MOD_DEPS to add (e.g. Fw_Time) +#### +function(register_os_implementation NAMES SUFFIX) + add_fprime_supplied_os_module("${NAMES}" "${SUFFIX}" "${ARGN}") +endfunction() + #### # Function `choose_fprime_implementation`: #