fsfw/src/fsfw/osal/freertos/CMakeLists.txt

31 lines
865 B
CMake
Raw Normal View History

2022-05-16 14:55:15 +02:00
target_sources(
${LIB_FSFW_NAME}
PRIVATE Clock.cpp
FixedTimeslotTask.cpp
BinarySemaphore.cpp
BinSemaphUsingTask.cpp
CountingSemaphore.cpp
CountingSemaphUsingTask.cpp
MessageQueue.cpp
Mutex.cpp
MutexFactory.cpp
PeriodicTask.cpp
QueueFactory.cpp
SemaphoreFactory.cpp
TaskFactory.cpp
Timekeeper.cpp
TaskManagement.cpp
QueueMapManager.cpp)
2020-12-19 02:29:22 +01:00
2022-05-16 14:55:15 +02:00
# FreeRTOS is required to link the FSFW now. It is recommended to compile
# FreeRTOS as a static library and set LIB_OS_NAME to the target name of the
2020-12-19 02:29:22 +01:00
# library.
if(NOT LIB_OS_NAME)
2022-05-16 14:55:15 +02:00
message(
STATUS
"LIB_OS_NAME is empty. Make sure to include the FreeRTOS header path properly."
)
2021-07-12 22:34:59 +02:00
else()
2022-05-16 14:55:15 +02:00
target_link_libraries(${LIB_FSFW_NAME} PRIVATE ${LIB_OS_NAME})
2020-12-19 02:29:22 +01:00
endif()