1
0
forked from fsfw/fsfw

FreeRTOS unittests building (but not running)

This commit is contained in:
2023-01-13 11:09:32 +01:00
parent 654de0f586
commit 13639feec6
10 changed files with 127 additions and 18 deletions

View File

@ -181,16 +181,19 @@ if(FSFW_BUILD_TESTS)
)
include(FetchContent)
set(FreeRTOS_PORT posix)
FetchContent_Declare(
FreeRTOS
GIT_REPOSITORY https://egit.irs.uni-stuttgart.de/fsfw/FreeRTOS-LTS
GIT_TAG develop
GIT_SUBMODULES FreeRTOS/FreeRTOS-Kernel)
list(APPEND FSFW_FETCH_CONTENT_TARGETS FreeRTOS)
FetchContent_MakeAvailable(FreeRTOS)
set(LIB_OS_NAME FreeRTOS)
target_include_directories(FreeRTOS PRIVATE unittests/FreeRTOS-Config)
target_include_directories(FreeRTOS PUBLIC unittests/testcfg/freertos)
endif()
project(${FSFW_TEST_TGT} CXX C)