EIVE upstream #29

Merged
muellerr merged 693 commits from use-eive-upstream into develop 2023-06-30 15:44:39 +02:00
Showing only changes of commit c5a7b98a7d - Show all commits

View File

@ -132,14 +132,14 @@ if(FSFW_BUILD_UNITTESTS)
endif() endif()
endif() endif()
message(STATUS "Finding and/or providing ETL library with version ${FSFW_ETL_LIB_MAJOR_VERSION}") message(STATUS "Finding and/or providing etl library with version ${FSFW_ETL_LIB_MAJOR_VERSION}")
# Check whether the user has already installed ETL first # Check whether the user has already installed ETL first
find_package(${FSFW_ETL_LIB_NAME} ${FSFW_ETL_LIB_MAJOR_VERSION} QUIET) find_package(${FSFW_ETL_LIB_NAME} ${FSFW_ETL_LIB_MAJOR_VERSION} QUIET)
# Not installed, so use FetchContent to download and provide etl # Not installed, so use FetchContent to download and provide etl
if(NOT ${FSFW_ETL_LIB_NAME}_FOUND) if(NOT ${FSFW_ETL_LIB_NAME}_FOUND)
message(STATUS message(STATUS
"No ETL installation was found with find_package. Installing and providing " "No etl installation was found with find_package. Installing and providing "
"etl with FindPackage" "etl with FindPackage"
) )
include(FetchContent) include(FetchContent)
@ -153,19 +153,6 @@ if(NOT ${FSFW_ETL_LIB_NAME}_FOUND)
FetchContent_MakeAvailable(etl) FetchContent_MakeAvailable(etl)
endif() endif()
# Export the ETL library and make it available in the fsfw namespace. This allows user code
# to use the same ETL dependency the framework is using
# You can do this by using the two following directives
# include(fsfw-etl)
# target_link_libraries(${TARGET_NAME} PRIVATE fsfw::etl)
export(
TARGETS ${FSFW_ETL_LIB_NAME}
FILE "${CMAKE_CURRENT_BINARY_DIR}/cmake/fsfw-etl.cmake"
NAMESPACE fsfw::
)
# Append the export directory to the module path
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_BINARY_DIR}/cmake")
set(FSFW_CORE_INC_PATH "inc") set(FSFW_CORE_INC_PATH "inc")
set_property(CACHE FSFW_OSAL PROPERTY STRINGS host linux rtems freertos) set_property(CACHE FSFW_OSAL PROPERTY STRINGS host linux rtems freertos)