fsfw/src/fsfw/osal/CMakeLists.txt

36 lines
954 B
CMake
Raw Normal View History

2020-12-07 01:40:10 +01:00
# Check the OS_FSFW variable
2021-07-13 18:52:19 +02:00
if(FSFW_OSAL MATCHES "freertos")
2022-05-16 14:55:15 +02:00
add_subdirectory(freertos)
2021-07-13 18:52:19 +02:00
elseif(FSFW_OSAL MATCHES "rtems")
2022-05-16 14:55:15 +02:00
add_subdirectory(rtems)
2021-07-13 18:52:19 +02:00
elseif(FSFW_OSAL MATCHES "linux")
2022-05-16 14:55:15 +02:00
add_subdirectory(linux)
2021-07-13 18:52:19 +02:00
elseif(FSFW_OSAL MATCHES "host")
2022-05-16 14:55:15 +02:00
add_subdirectory(host)
if(WIN32)
add_subdirectory(windows)
elseif(UNIX)
# We still need to pull in some Linux specific sources
target_sources(${LIB_FSFW_NAME} PUBLIC linux/tcpipHelpers.cpp)
endif()
2020-12-07 01:40:10 +01:00
else()
2022-06-21 00:49:58 +02:00
message(
WARNING
"${MSG_PREFIX} The FSFW_OSAL variable was not set. Assuming host OS..")
2022-05-16 14:55:15 +02:00
# Not set. Assumuing this is a host build, try to determine host OS
if(WIN32)
add_subdirectory(host)
add_subdirectory(windows)
elseif(UNIX)
add_subdirectory(linux)
else()
# MacOS or other OSes have not been tested yet / are not supported.
message(FATAL_ERROR "The host OS could not be determined! Aborting.")
endif()
2020-12-07 01:40:10 +01:00
endif()
2022-05-16 14:55:15 +02:00
add_subdirectory(common)