diff options
-rw-r--r-- | CMakeLists.txt | 12 | ||||
-rw-r--r-- | afm-main.pc.in | 28 |
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@ + + |