Skip to content

Commit

Permalink
example, bazel
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <louise@openrobotics.org>
  • Loading branch information
chapulina committed May 9, 2022
1 parent 939dd6d commit 63682ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ licenses(["notice"])

exports_files(["LICENSE"])

PROJECT_NAME = "ignition-utils"
PROJECT_NAME = "gz-utils"

PROJECT_MAJOR = 2

Expand Down
8 changes: 4 additions & 4 deletions examples/using_cli/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project(ignition-utils-cli-demo)
project(gz-utils-cli-demo)

# Find the Ignition Libraries used directly by the example
find_package(ignition-utils2 REQUIRED COMPONENTS cli)
set(IGN_UTILS_VER ${ignition-utils2_VERSION_MAJOR})
find_package(gz-utils2 REQUIRED COMPONENTS cli)
set(GZ_UTILS_VER ${gz-utils2_VERSION_MAJOR})

add_executable(${PROJECT_NAME} main.cc)
target_link_libraries(
${PROJECT_NAME}
ignition-utils${IGN_UTILS_VER}::cli
gz-utils${GZ_UTILS_VER}::cli
)
4 changes: 2 additions & 2 deletions examples/using_cli/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
#include <gz/utils/cli/CLI.hpp>
#include <gz/utils/config.hh>

/*
/*
* At this point, all functionality of CLI11 will be available.
* Consult https://github.com/CLIUtils/CLI11 for usage
*/

//////////////////////////////////////////////////
int main(int argc, char** argv)
{
CLI::App app{"Using ignition-utils CLI wrapper"};
CLI::App app{"Using gz-utils CLI wrapper"};

app.add_flag_callback("-v,--version", [](){
std::cout << IGNITION_UTILS_VERSION_FULL << std::endl;
Expand Down

0 comments on commit 63682ad

Please sign in to comment.