This commit is contained in:
duongtd 2026-01-16 17:26:24 +07:00
parent b7a7a60b7b
commit b6c387dd0f
3 changed files with 7 additions and 10 deletions

View File

@ -3,7 +3,6 @@ project(common_msgs)
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_subdirectory(utils)
if (NOT TARGET robot_std_msgs) if (NOT TARGET robot_std_msgs)
add_subdirectory(robot_std_msgs) add_subdirectory(robot_std_msgs)

View File

@ -20,11 +20,9 @@
<buildtool_depend version_gte="0.5.68">catkin</buildtool_depend> <buildtool_depend version_gte="0.5.68">catkin</buildtool_depend>
<build_depend>robot_std_msgs</build_depend> <build_depend>robot_std_msgs</build_depend>
<build_depend>utils</build_depend>
<build_depend>robot_time</build_depend> <build_depend>robot_time</build_depend>
<run_depend>robot_std_msgs</run_depend> <run_depend>robot_std_msgs</run_depend>
<run_depend>utils</run_depend>
<run_depend>robot_time</run_depend> <run_depend>robot_time</run_depend>
</package> </package>

View File

@ -143,10 +143,10 @@ else()
message(STATUS "=================================") message(STATUS "=================================")
endif() endif()
# ======================================================== # # ========================================================
# Test executables # # Test executables
# ======================================================== # # ========================================================
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test/main.cpp) # if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/test/main.cpp)
add_executable(${PROJECT_NAME}_test test/main.cpp) # add_executable(${PROJECT_NAME}_test test/main.cpp)
target_link_libraries(${PROJECT_NAME}_test PRIVATE ${PROJECT_NAME}) # target_link_libraries(${PROJECT_NAME}_test PRIVATE ${PROJECT_NAME})
endif() # endif()