diff options
Diffstat (limited to 'apt-inst/CMakeLists.txt')
-rw-r--r-- | apt-inst/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-inst/CMakeLists.txt b/apt-inst/CMakeLists.txt index 31da115e4..e4e91e493 100644 --- a/apt-inst/CMakeLists.txt +++ b/apt-inst/CMakeLists.txt @@ -2,7 +2,7 @@ include_directories(${PROJECT_BINARY_DIR}/include/apt-pkg) # Set the version of the library -set(MAJOR 2.0) +set(MAJOR 3.0) set(MINOR 0) set(APT_INST_MAJOR ${MAJOR} PARENT_SCOPE) @@ -12,6 +12,8 @@ set(APT_INST_MAJOR ${MAJOR} PARENT_SCOPE) file(GLOB_RECURSE library "*.cc") file(GLOB_RECURSE headers "*.h") +configure_file(apt-inst.pc.in ${CMAKE_CURRENT_BINARY_DIR}/apt-inst.pc @ONLY) + # Create a library using the C++ files add_library(apt-inst SHARED ${library}) @@ -25,4 +27,5 @@ add_version_script(apt-inst) # Install the library and the headers install(TARGETS apt-inst LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(FILES ${headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/apt-pkg) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/apt-inst.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) flatify(${PROJECT_BINARY_DIR}/include/apt-pkg/ "${headers}") |