2021-03-23 16:44:43 +01:00
|
|
|
target_sources(${LIB_FSFW_HAL_NAME} PRIVATE
|
|
|
|
LinuxLibgpioIF.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# This abstraction layer requires the gpiod library. You can install this library
|
|
|
|
# with "sudo apt-get install -y libgpiod-dev". If you are cross-compiling, you need
|
|
|
|
# to install the package before syncing the sysroot to your host computer.
|
2021-03-23 17:11:34 +01:00
|
|
|
find_library(LIB_GPIO gpiod REQUIRED)
|
2021-03-23 16:44:43 +01:00
|
|
|
|
|
|
|
target_link_libraries(${LIB_FSFW_HAL_NAME} PRIVATE
|
2021-03-23 17:11:34 +01:00
|
|
|
${LIB_GPIO}
|
2021-03-23 16:44:43 +01:00
|
|
|
)
|