From 1c6d185bf63e4f27ab12868d1f6341d5d22a6de4 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 19 Oct 2015 19:08:54 +0300 Subject: [PATCH] templates/pkg-config.pc.in added. --- PkgConfigCommonRules.cmake | 6 ++++++ templates/pkg-config.pc.in | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 templates/pkg-config.pc.in diff --git a/PkgConfigCommonRules.cmake b/PkgConfigCommonRules.cmake index 28d36c0..193b460 100644 --- a/PkgConfigCommonRules.cmake +++ b/PkgConfigCommonRules.cmake @@ -20,3 +20,9 @@ ENDIF (WIN32) SET (PkgConfigLibsPrivate "") SET (PkgConfigCflags "") + +CONFIGURE_FILE ( + "${CMAKE_SOURCE_DIR}/cmake/backbone/templates/pkg-config.pc.in" + "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_LOWERCASE_NAME}-${MAJOR}.pc" +) + diff --git a/templates/pkg-config.pc.in b/templates/pkg-config.pc.in new file mode 100644 index 0000000..ad5264d --- /dev/null +++ b/templates/pkg-config.pc.in @@ -0,0 +1,11 @@ +prefix=@PkgConfigPrefix@ +exec_prefix=@PkgConfigExecPrefix@ +libdir=@PkgConfigLibDir@ +includedir=@PkgConfigIncludeDir@ + +Name: @PkgConfigName@ +Description: @PkgConfigDescription@ +Version: @PkgConfigVersion@ +Libs: @PkgConfigLibs@ +Libs.private: @PkgConfigLibsPrivate@ +Cflags: @PkgConfigCflags@