aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-11-08 12:56:05 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-11-08 12:56:05 +0100
commit4cd8d99ab22ab339d54203bf977648af71d91499 (patch)
tree2677a3afe572809d4ec55aa12f83385936c017af
parent4a1409460a7c0a5d26fe10b5f84368b3cb8b8b5a (diff)
Adds a pkgconfig file for directories
Change-Id: Icbd3c7bc52232ca0fec6f4c69694bfaa0b64ef8e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--CMakeLists.txt12
-rw-r--r--afm-main.pc.in28
2 files changed, 39 insertions, 1 deletions
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 <jose.bollo@iot.bzh>
+##
+## 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@
+
+