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)