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
|
FreeRTOS/FreeRTOS-Kernel/timers.c
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(${LIB_FREERTOS_NAME}
|
target_include_directories(
|
||||||
PUBLIC
|
${LIB_FREERTOS_NAME}
|
||||||
FreeRTOS/FreeRTOS-Kernel/include
|
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