adding posix port to cmake

This commit is contained in:
Ulrich Mohr 2023-01-13 09:54:42 +01:00
parent c8ff368db0
commit b77b3d95cf

View File

@ -15,7 +15,33 @@ target_sources(
FreeRTOS/FreeRTOS-Kernel/timers.c
)
target_include_directories(${LIB_FREERTOS_NAME}
PUBLIC
FreeRTOS/FreeRTOS-Kernel/include
target_include_directories(
${LIB_FREERTOS_NAME}
PUBLIC
FreeRTOS/FreeRTOS-Kernel/include
)
if(NOT FreeRTOS_PORT)
message(
STATUS
"FreeRTOS_PORT is empty. either set it or add port files manually."
)
else()
if(FreeRTOS_PORT MATCHES "posix")
target_sources(
${LIB_FREERTOS_NAME}
PRIVATE
FreeRTOS/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix/port.c
)
target_include_directories(
${LIB_FREERTOS_NAME}
PRIVATE
FreeRTOS/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix/
)
else()
message(
ERROR
"Unsupportet FreeRTOS_PORT."
)
endif()
endif()