From 1bba5e650d092fe78c5ed83d6e6d9691e6f3ce87 Mon Sep 17 00:00:00 2001 From: Denis Biryukov Date: Mon, 2 Sep 2024 13:06:31 +0200 Subject: [PATCH] add zenohpico::lib alias --- CMakeLists.txt | 1 + PackageConfig.cmake.in | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6153b040c..b5558870b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,6 +113,7 @@ add_library(${Libname}) function(add_definition value) add_definitions(-D${value}) target_compile_definitions(${Libname} PUBLIC ${value}) + add_library(zenohpico::lib ALIAS ${Libname}) endfunction() add_definition(ZENOH_C_STANDARD=${CMAKE_C_STANDARD}) diff --git a/PackageConfig.cmake.in b/PackageConfig.cmake.in index 4641727ad..94e4777a4 100644 --- a/PackageConfig.cmake.in +++ b/PackageConfig.cmake.in @@ -14,3 +14,5 @@ if(@CHECK_THREADS@) endif() include("${CMAKE_CURRENT_LIST_DIR}/zenohpicoTargets.cmake") + +add_library(zenohpico::lib ALIAS zenohpico::zenohpico)