Adds a pkgconfig file for directories
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 8 Nov 2016 11:56:05 +0000 (12:56 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 8 Nov 2016 11:56:05 +0000 (12:56 +0100)
Change-Id: Icbd3c7bc52232ca0fec6f4c69694bfaa0b64ef8e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
CMakeLists.txt
afm-main.pc.in [new file with mode: 0644]

index e2e62b2..0fe6bb1 100644 (file)
@@ -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 (file)
index 0000000..2133093
--- /dev/null
@@ -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@
+
+