adding posix port to cmake
This commit is contained in:
parent
c8ff368db0
commit
b77b3d95cf
@ -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()
|
Loading…
Reference in New Issue
Block a user