Skip to content

Commit

Permalink
add zenohpico::lib alias
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Sep 2, 2024
1 parent a447578 commit 1bba5e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 2 additions & 0 deletions PackageConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ if(@CHECK_THREADS@)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/zenohpicoTargets.cmake")

add_library(zenohpico::lib ALIAS zenohpico::zenohpico)

0 comments on commit 1bba5e6

Please sign in to comment.