From 6cdb2c5de8fe343757babb4b758f256cb01d51d5 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 5 Jul 2018 18:44:42 +0200 Subject: Added a pkgconfig file with the project Goal is to provide a file to get binding installation path easily from other bindings and be able to use it Change-Id: I09025cfcc568b517da7e48b5a96dece64426f81f Signed-off-by: Romain Forlot --- conf.d/CMakeLists.txt | 8 ++++++++ conf.d/aft.pc.in | 27 +++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 conf.d/aft.pc.in diff --git a/conf.d/CMakeLists.txt b/conf.d/CMakeLists.txt index 28a0609..3fd4d3c 100644 --- a/conf.d/CMakeLists.txt +++ b/conf.d/CMakeLists.txt @@ -20,3 +20,11 @@ # Include any directory not starting with _ # ----------------------------------------------------- PROJECT_SUBDIRS_ADD(${PROJECT_SRC_DIR_PATTERN}) + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/aft.pc.in ${CMAKE_CURRENT_BINARY_DIR}/aft.pc @ONLY) + +INSTALL(FILES + ${CMAKE_CURRENT_BINARY_DIR}/aft.pc + DESTINATION + ${CMAKE_INSTALL_LIBDIR}/pkgconfig + ) diff --git a/conf.d/aft.pc.in b/conf.d/aft.pc.in new file mode 100644 index 0000000..ef6b2a4 --- /dev/null +++ b/conf.d/aft.pc.in @@ -0,0 +1,27 @@ +## +## Copyright (C) 2016, 2017, 2018 "IoT.bzh" +## Author: José Bollo +## +## This file is part of afb-daemon project. +## +## Licensed under the Apache License, Version 2.0 (the "License"); +## you may not use this file except in compliance with the License. +## You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## + +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ + +Name: @PROJECT_PRETTY_NAME@ +Description: @PROJECT_DESCRIPTION@ +Version: @PROJECT_VERSION@ +URL: @PROJECT_URL@ + +Requires: afb-daemon -- cgit 1.2.3-korg