fsfw/src/fsfw/osal/CMakeLists.txt

35 lines
1.0 KiB
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")
2021-07-14 00:54:39 +02:00
add_subdirectory(freertos)
2021-07-13 18:52:19 +02:00
elseif(FSFW_OSAL MATCHES "rtems")
2021-03-30 00:37:10 +02:00
add_subdirectory(rtems)
2021-07-13 18:52:19 +02:00
elseif(FSFW_OSAL MATCHES "linux")
2021-03-30 00:37:10 +02:00
add_subdirectory(linux)
2021-07-13 18:52:19 +02:00
elseif(FSFW_OSAL MATCHES "host")
2021-03-30 00:37:10 +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-05-20 20:52:36 +02:00
message(WARNING "${MSG_PREFIX} The FSFW_OSAL variable was not set. Assuming host OS..")
2021-03-30 00:37:10 +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()
add_subdirectory(common)