fix file cmake

This commit is contained in:
2025-12-02 13:03:19 +07:00
parent 747c9697a2
commit 061265a5fb
2 changed files with 15 additions and 14 deletions

View File

@@ -21,7 +21,6 @@ find_package(Eigen3 REQUIRED) # Thư viện Eigen cho toán học
find_package(Boost REQUIRED COMPONENTS system thread filesystem) # Boost: system, thread, filesystem
find_package(GTest REQUIRED) # Google Test cho unit test
find_package(PCL REQUIRED COMPONENTS common io) # Point Cloud Library
find_package(xmlrpcpp REQUIRED) # XML-RPC client/server library
# --- Define macro để dùng trong code ---
add_definitions(-DCOSTMAP_2D_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
@@ -124,6 +123,7 @@ target_link_libraries(plugins
costmap_2d
${Boost_LIBRARIES}
yaml-cpp
robot_time
)
@@ -150,5 +150,6 @@ if(BUILD_COSTMAP_TESTS)
yaml-cpp
tf3
GTest::GTest GTest::Main
robot_time
)
endif()