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
|
2022-01-26 12:11:52 +01:00
|
|
|
CommandExecutor.cpp
|
2021-07-13 19:19:25 +02:00
|
|
|
utility.cpp
|
|
|
|
)
|
|
|
|
|
2022-01-26 12:11:52 +01:00
|
|
|
if(FSFW_HAL_LINUX_ADD_PERIPHERAL_DRIVERS)
|
2022-03-07 16:07:01 +01:00
|
|
|
if(FSFW_HAL_LINUX_ADD_LIBGPIOD)
|
2022-01-26 12:11:52 +01:00
|
|
|
add_subdirectory(gpio)
|
2022-03-07 16:07:01 +01:00
|
|
|
endif()
|
2022-01-26 12:11:52 +01:00
|
|
|
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()
|
2022-01-26 12:11:52 +01:00
|
|
|
endif()
|
2022-02-04 10:16:37 +01:00
|
|
|
|
|
|
|
add_subdirectory(uio)
|