fsfw/src/fsfw_hal/linux/CMakeLists.txt

25 lines
633 B
CMake
Raw Normal View History

2021-07-13 19:19:25 +02:00
if(FSFW_HAL_ADD_RASPBERRY_PI)
2022-07-18 16:08:06 +02:00
add_subdirectory(rpi)
2021-07-13 19:19:25 +02:00
endif()
2022-07-18 16:08:06 +02:00
target_sources(${LIB_FSFW_NAME} PRIVATE UnixFileGuard.cpp CommandExecutor.cpp
utility.cpp)
2021-07-13 19:19:25 +02:00
if(FSFW_HAL_LINUX_ADD_LIBGPIOD)
add_subdirectory(gpio)
endif()
if(FSFW_HAL_LINUX_ADD_SERIAL_DRIVERS)
add_subdirectory(serial)
endif()
if(FSFW_HAL_LINUX_ADD_PERIPHERAL_DRIVERS)
2022-07-18 16:08:06 +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)