-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add pc files upon installation * Avoid hardcoded paths
- Loading branch information
1 parent
b9ccf63
commit 65d9552
Showing
3 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# Copyright (c) 2023 ZettaScale Technology. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License 2.0 which is available at | ||
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
# which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
# | ||
# Contributors: | ||
# ZettaScale Zenoh team, <[email protected]> | ||
# | ||
|
||
@PACKAGE_INIT@ | ||
|
||
add_library(__zenohpico_static STATIC IMPORTED GLOBAL) | ||
add_library(zenohpico::static ALIAS __zenohpico_static) | ||
set_property(TARGET __zenohpico_static PROPERTY IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/@STATICLIB@") | ||
|
||
add_library(__zenohpico_lib SHARED IMPORTED GLOBAL) | ||
add_library(zenohpico::lib ALIAS __zenohpico_lib) | ||
set_target_properties(__zenohpico_lib PROPERTIES IMPORTED_NO_SONAME TRUE) | ||
set_property(TARGET __zenohpico_lib PROPERTY IMPORTED_LOCATION "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/@DYLIB@") | ||
if(NOT ("@IMPLIB@" STREQUAL "")) | ||
set_property(TARGET __zenohpico_lib PROPERTY IMPORTED_IMPLIB "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/@IMPLIB@") | ||
endif() | ||
target_include_directories(__zenohpico_lib INTERFACE "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
|
||
Name: @PROJECT_NAME@ | ||
Description: @CMAKE_PROJECT_DESCRIPTION@ | ||
URL: @CMAKE_PROJECT_HOMEPAGE_URL@ | ||
Version: @PROJECT_VERSION@ | ||
Cflags: -I${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ | ||
Libs: -L${prefix}/@CMAKE_INSTALL_LIBDIR@ -lzenohpico@LIBNAME_POSTFIX@ |