]> git.saurik.com Git - apt.git/blame - apt-private/CMakeLists.txt
acquire: Use priority queues and a 3 stage pipeline design
[apt.git] / apt-private / CMakeLists.txt
CommitLineData
f3de2dba
JAK
1# Set the version of the library
2set(MAJOR 0.0)
3set(MINOR 0)
4
5# Definition of the C++ files used to build the library
6file(GLOB_RECURSE library "*.cc")
7file(GLOB_RECURSE headers "*.h")
8
9# Create a library using the C++ files
10add_library(apt-private SHARED ${library})
11
12# Link the library and set the SONAME
13target_link_libraries(apt-private PUBLIC apt-pkg)
14set_target_properties(apt-private PROPERTIES VERSION ${MAJOR}.${MINOR})
15set_target_properties(apt-private PROPERTIES SOVERSION ${MAJOR})
16add_version_script(apt-private)
17
18# Install the library and the headers
19install(TARGETS apt-private
20 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
21 NAMELINK_SKIP)
22
23flatify(${PROJECT_BINARY_DIR}/include/apt-private/ "${headers}")