diff options
author | Julian Andres Klode <jak@debian.org> | 2019-04-04 14:17:37 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2019-04-04 14:17:37 +0000 |
commit | 0ea7c474182f81e2b7d728569a2fd7b8fa915f3f (patch) | |
tree | c917703926593b89f0be93eb4caaf6ee42eadc53 /apt-pkg/CMakeLists.txt | |
parent | aea842e1faf5aceebdc046d3d6957a12ae10142d (diff) | |
parent | 7c461f0396d413acb9a950f3df9ea6d062896cd7 (diff) | |
download | apt-0ea7c474182f81e2b7d728569a2fd7b8fa915f3f.tar.gz |
Merge branch 'pkgconfig' into 'master'
Add PkgConfig on the apt-pkg and apt-inst libraries
See merge request apt-team/apt!20
Diffstat (limited to 'apt-pkg/CMakeLists.txt')
-rw-r--r-- | apt-pkg/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/CMakeLists.txt b/apt-pkg/CMakeLists.txt index 256747935..57e422a14 100644 --- a/apt-pkg/CMakeLists.txt +++ b/apt-pkg/CMakeLists.txt @@ -29,6 +29,8 @@ execute_process(COMMAND grep "^#define APT_PKG_RELEASE" message(STATUS "Building libapt-pkg ${MAJOR} (release ${MINOR})") set(APT_PKG_MAJOR ${MAJOR} PARENT_SCOPE) # exporting for methods/CMakeLists.txt +configure_file(apt-pkg.pc.in ${CMAKE_CURRENT_BINARY_DIR}/apt-pkg.pc @ONLY) + # Definition of the C++ files used to build the library - note that this # is expanded at CMake time, so you have to rerun cmake if you add or remove # a file (you can just run cmake . in the build directory) @@ -67,6 +69,7 @@ add_version_script(apt-pkg) # Install the library and the header files install(TARGETS apt-pkg LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(FILES ${headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/apt-pkg) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/apt-pkg.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) flatify(${PROJECT_BINARY_DIR}/include/apt-pkg/ "${headers}") if(CMAKE_BUILD_TYPE STREQUAL "Coverage") |