Skip to content

Commit

Permalink
Restore cli11 dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
mhidalgo-bdai committed Oct 14, 2024
1 parent 2449482 commit 49c281e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN apt-get update --fix-missing \
ca-certificates \
cmake \
git \
libcli11-dev \
libeigen3-dev \
libgrpc++-dev \
libprotobuf-dev \
Expand Down
13 changes: 4 additions & 9 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(GRPC REQUIRED grpc)
pkg_check_modules(GRPCPP REQUIRED grpc++)
find_program(GRPC_CPP_PLUGIN_LOCATION grpc_cpp_plugin REQUIRED)

find_package(CLI11 REQUIRED)
find_package(Threads REQUIRED)

include_directories(SYSTEM $<TARGET_PROPERTY:CLI11::CLI11,INTERFACE_INCLUDE_DIRECTORIES>)

set(CMAKE_EXPORT_COMPILE_COMMANDS true)

# Command-line arguments:
Expand Down Expand Up @@ -195,8 +197,7 @@ include(CMakePackageConfigHelpers)

### EXAMPLE EXECUTABLES ###
if(BUILD_EXAMPLES)
find_package(CLI11 REQUIRED)


link_directories(
${PROTOBUF_LIB_DIR}
)
Expand All @@ -205,7 +206,6 @@ target_compile_features(arm_grasp_carry_overrides PUBLIC cxx_std_17)
target_include_directories(arm_grasp_carry_overrides PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${PROTOBUF_INCLUDE_DIR}
$<TARGET_PROPERTY:CLI11::CLI11,INTERFACE_INCLUDE_DIRECTORIES>
)
target_link_libraries(arm_grasp_carry_overrides PUBLIC bosdyn_client_static)
install(TARGETS arm_grasp_carry_overrides DESTINATION ${CMAKE_INSTALL_BINDIR})
Expand All @@ -223,7 +223,6 @@ target_compile_features(basic_robot_command PUBLIC cxx_std_17)
target_include_directories(basic_robot_command PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${PROTOBUF_INCLUDE_DIR}
$<TARGET_PROPERTY:CLI11::CLI11,INTERFACE_INCLUDE_DIRECTORIES>
)
target_link_libraries(basic_robot_command PUBLIC bosdyn_client_static)
install(TARGETS basic_robot_command DESTINATION ${CMAKE_INSTALL_BINDIR})
Expand All @@ -232,7 +231,6 @@ target_compile_features(get_image PUBLIC cxx_std_17)
target_include_directories(get_image PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${PROTOBUF_INCLUDE_DIR}
$<TARGET_PROPERTY:CLI11::CLI11,INTERFACE_INCLUDE_DIRECTORIES>
)
target_link_libraries(get_image PUBLIC bosdyn_client_static)
install(TARGETS get_image DESTINATION ${CMAKE_INSTALL_BINDIR})
Expand All @@ -241,7 +239,6 @@ target_compile_features(hello_spot PUBLIC cxx_std_17)
target_include_directories(hello_spot PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${PROTOBUF_INCLUDE_DIR}
$<TARGET_PROPERTY:CLI11::CLI11,INTERFACE_INCLUDE_DIRECTORIES>
)
target_link_libraries(hello_spot PUBLIC bosdyn_client_static)
install(TARGETS hello_spot DESTINATION ${CMAKE_INSTALL_BINDIR})
Expand All @@ -250,7 +247,6 @@ target_compile_features(inverse_kinematics_reachability PUBLIC cxx_std_17)
target_include_directories(inverse_kinematics_reachability PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${PROTOBUF_INCLUDE_DIR}
$<TARGET_PROPERTY:CLI11::CLI11,INTERFACE_INCLUDE_DIRECTORIES>
)
target_link_libraries(inverse_kinematics_reachability PUBLIC bosdyn_client_static)
install(TARGETS inverse_kinematics_reachability DESTINATION ${CMAKE_INSTALL_BINDIR})
Expand All @@ -259,7 +255,6 @@ target_compile_features(spot_cam PUBLIC cxx_std_17)
target_include_directories(spot_cam PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${PROTOBUF_INCLUDE_DIR}
$<TARGET_PROPERTY:CLI11::CLI11,INTERFACE_INCLUDE_DIRECTORIES>
)
target_link_libraries(spot_cam PUBLIC bosdyn_client_static)
install(TARGETS spot_cam DESTINATION ${CMAKE_INSTALL_BINDIR})
Expand Down
1 change: 1 addition & 0 deletions cpp/cmake/ProjectConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ find_dependency(PkgConfig CONFIG REQUIRED)
pkg_check_modules(GRPC REQUIRED grpc)
pkg_check_modules(GRPCPP REQUIRED grpc++)
find_dependency(Threads REQUIRED)
find_dependency(CLI11 REQUIRED)
# Pick up the auto-generated file which knows how to add the library targets
# This will mean that we do not have to supply full paths for the libraries
set(exports_file "${CMAKE_CURRENT_LIST_DIR}/@EXPORTS_FILE@")
Expand Down

0 comments on commit 49c281e

Please sign in to comment.