fsfw/hal/src/fsfw_hal/linux/CMakeLists.txt

26 lines
543 B
CMake
Raw Normal View History

2021-07-13 19:19:25 +02:00
if(FSFW_HAL_ADD_RASPBERRY_PI)
add_subdirectory(rpi)
endif()
2021-07-15 18:53:59 +02:00
target_sources(${LIB_FSFW_NAME} PRIVATE
2021-07-13 19:19:25 +02:00
UnixFileGuard.cpp
CommandExecutor.cpp
2021-07-13 19:19:25 +02:00
utility.cpp
)
if(FSFW_HAL_LINUX_ADD_PERIPHERAL_DRIVERS)
2022-03-07 16:07:01 +01:00
if(FSFW_HAL_LINUX_ADD_LIBGPIOD)
add_subdirectory(gpio)
2022-03-07 16:07:01 +01:00
endif()
add_subdirectory(uart)
2022-04-30 18:40:22 +02:00
# Adding those does not really make sense on Apple systems which
# are generally host systems. It won't even compile as the headers
# are missing
if(NOT APPLE)
add_subdirectory(i2c)
add_subdirectory(spi)
endif()
endif()
2022-02-04 10:16:37 +01:00
add_subdirectory(uio)