From 377ae8f148e50d40ceeadbd1b2c4d882a4fe41c7 Mon Sep 17 00:00:00 2001 From: Franco Cipollone Date: Thu, 28 Sep 2023 09:52:36 -0300 Subject: [PATCH] Adds explicit linking of serial library to motor_driver_demo app. Signed-off-by: Franco Cipollone --- andino_base/applications/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/andino_base/applications/CMakeLists.txt b/andino_base/applications/CMakeLists.txt index 82b5d2dc..61f12de8 100644 --- a/andino_base/applications/CMakeLists.txt +++ b/andino_base/applications/CMakeLists.txt @@ -5,10 +5,14 @@ target_include_directories(motor_driver_demo $ $) +# Reference: See libserial example project for integration with CMake +target_include_directories(motor_driver_demo PUBLIC ${SERIAL_INCLUDE_DIRS}) + target_link_libraries(motor_driver_demo PUBLIC gflags motor_driver + ${SERIAL_LDFLAGS} ) install(