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@