From 69cbf0f7b2d1e33a2723196410bd49af8c03d1e4 Mon Sep 17 00:00:00 2001 From: "Victor T. N" Date: Mon, 22 Jul 2024 14:06:04 +0000 Subject: [PATCH] Add library exports to CMakeLists Signed-off-by: Victor T. N --- unitree_guide/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/unitree_guide/CMakeLists.txt b/unitree_guide/CMakeLists.txt index 4779d83..cf12d2f 100755 --- a/unitree_guide/CMakeLists.txt +++ b/unitree_guide/CMakeLists.txt @@ -70,8 +70,9 @@ if(CATKIN_MAKE) unitree_legged_msgs ) catkin_package( - CATKIN_DEPENDS - unitree_legged_msgs + INCLUDE_DIRS include + LIBRARIES unitree_guide + CATKIN_DEPENDS unitree_legged_msgs ) endif() @@ -119,6 +120,8 @@ file(GLOB_RECURSE SRC_LIST "src/*/*.cc" ) +add_library(${PROJECT_NAME} ${SRC_LIST}) + add_executable(junior_ctrl src/main.cpp ${SRC_LIST}) if(CATKIN_MAKE) target_link_libraries(junior_ctrl ${catkin_LIBRARIES})