From: José Bollo Date: Tue, 8 Nov 2016 11:56:05 +0000 (+0100) Subject: Adds a pkgconfig file for directories X-Git-Tag: chinook_3.0.0~23 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-main.git;a=commitdiff_plain;h=4cd8d99ab22ab339d54203bf977648af71d91499 Adds a pkgconfig file for directories Change-Id: Icbd3c7bc52232ca0fec6f4c69694bfaa0b64ef8e Signed-off-by: José Bollo --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e2e62b2..0fe6bb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,7 @@ include(GNUInstallDirs) set(PROJECT_NAME "AFM Main") set(PROJECT_PRETTY_NAME "Application Framework Main") -set(PROJECT_DESCRIPTION "Secured Application framework") +set(PROJECT_DESCRIPTION "Secured Application framework for Automotive Grade Linux") set(PROJECT_VERSION "1.0") set(USE_LIBZIP ON CACHE BOOL "should try to use libzip?") @@ -67,4 +67,14 @@ add_subdirectory(conf) add_subdirectory(scripts) add_subdirectory(certs) +############################################################ +# installs the pkgconfig files + +CONFIGURE_FILE(afm-main.pc.in afm-main.pc @ONLY) +INSTALL(FILES + ${CMAKE_CURRENT_BINARY_DIR}/afm-main.pc + DESTINATION + ${CMAKE_INSTALL_LIBDIR}/pkgconfig + ) + diff --git a/afm-main.pc.in b/afm-main.pc.in new file mode 100644 index 0000000..2133093 --- /dev/null +++ b/afm-main.pc.in @@ -0,0 +1,28 @@ +## +## Copyright (C) 2016 "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. +## + +icondir=@afm_icondir@ +installdir=@afm_appdir@ + +Name: @PROJECT_PRETTY_NAME@ +Description: @PROJECT_DESCRIPTION@ +Version: @PROJECT_VERSION@ +URL: @PROJECT_URL@ + +