Compare commits

...

7 Commits

Author SHA1 Message Date
2fb487f091 missing source file in posix port 2023-01-13 10:57:05 +01:00
2d0c6860d4 adding mem manager to posix port 2023-01-13 10:35:34 +01:00
3ad3c61a87 fixing visibility of port include 2023-01-13 10:08:11 +01:00
b77b3d95cf adding posix port to cmake 2023-01-13 09:54:42 +01:00
c8ff368db0 typo 2023-01-12 17:11:44 +01:00
9371aa1716 version 2023-01-12 17:09:22 +01:00
22d6e40329 initial CMakeLists.txt 2023-01-12 17:06:31 +01:00

49
CMakeLists.txt Normal file
View File

@ -0,0 +1,49 @@
cmake_minimum_required(VERSION 3.13)
set(LIB_FREERTOS_NAME FreeRTOS)
project(${LIB_FREERTOS_NAME}
VERSION 202210.01)
add_library(${LIB_FREERTOS_NAME})
target_sources(
${LIB_FREERTOS_NAME}
PRIVATE
FreeRTOS/FreeRTOS-Kernel/list.c
FreeRTOS/FreeRTOS-Kernel/queue.c
FreeRTOS/FreeRTOS-Kernel/tasks.c
FreeRTOS/FreeRTOS-Kernel/timers.c
)
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
FreeRTOS/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix/utils/wait_for_event.c
FreeRTOS/FreeRTOS-Kernel/portable/MemMang/heap_3.c
)
target_include_directories(
${LIB_FREERTOS_NAME}
PUBLIC
FreeRTOS/FreeRTOS-Kernel/portable/ThirdParty/GCC/Posix/
)
else()
message(
ERROR
"Unsupportet FreeRTOS_PORT."
)
endif()
endif()