From d41ce8102e25e8df5dcb32336e5fa0259ce08a76 Mon Sep 17 00:00:00 2001 From: Greg Medding Date: Wed, 26 Jun 2024 17:55:34 -0700 Subject: [PATCH] Switching dependencies to zenohcpp The new implementation will use the C++ Zenoh library instead of the C library. --- .github/workflows/ci.yml | 5 +++-- CMakeLists.txt | 6 +++--- conanfile.txt | 2 +- test/CMakeLists.txt | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 870419c..d4aa21c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,10 +37,11 @@ jobs: run: | conan create --version 0.2.0 --build=missing up-conan-recipes/up-cpp/developer - - name: Build zenohc conan package + - name: Build zenohcpp conan package shell: bash run: | - conan create --version 0.11.0.3 up-conan-recipes/zenohc-tmp/prebuilt + conan create --version 0.11.0 up-conan-recipes/zenohc-tmp/prebuilt + conan create --version 0.11.0 up-conan-recipes/zenohcpp-tmp/from-source - name: Fetch up-transport-zenoh-cpp uses: actions/checkout@v4 diff --git a/CMakeLists.txt b/CMakeLists.txt index eadd5c8..1c4e37a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,7 +16,7 @@ find_package(protobuf REQUIRED) find_package(spdlog REQUIRED) find_package(up-core-api REQUIRED) find_package(up-cpp REQUIRED) -find_package(zenohc REQUIRED) +find_package(zenohcpp REQUIRED) # TODO NEEDED? #add_definitions(-DSPDLOG_FMT_EXTERNAL) @@ -41,7 +41,7 @@ target_include_directories(${PROJECT_NAME} $ $ $ - ${zenohc_INCLUDE_DIR} + ${zenohcpp_INCLUDE_DIR} ${up-cpp_INCLUDE_DIR} ${up-core-api_INCLUDE_DIR} ${protobuf_INCLUDE_DIR} @@ -51,7 +51,7 @@ set_property(TARGET ${PROJECT_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON) target_link_libraries(${PROJECT_NAME} PRIVATE - zenohc::lib + zenohcpp::lib up-cpp::up-cpp up-core-api::up-core-api protobuf::libprotobuf diff --git a/conanfile.txt b/conanfile.txt index c3dfdb2..dfaed33 100644 --- a/conanfile.txt +++ b/conanfile.txt @@ -1,6 +1,6 @@ [requires] up-cpp/0.2.0 -zenohc/0.11.0.3 +zenohcpp/0.11.0 # Should result in using the packages from up-cpp spdlog/[>=1.13.0] up-core-api/[>=1.5.8] diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 08f8436..3501d45 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -23,7 +23,7 @@ function(add_coverage_test Name) up-core-api::up-core-api up-cpp::up-cpp up-cpp::up-transport-zenoh-cpp - zenohc::lib + zenohcpp::lib spdlog::spdlog protobuf::protobuf PRIVATE