You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
887 B

  1. # Set the version of the library
  2. set(MAJOR 0.0)
  3. set(MINOR 0)
  4. # Definition of the C++ files used to build the library - note that this
  5. # is expanded at CMake time, so you have to rerun cmake if you add or remove
  6. # a file (you can just run cmake . in the build directory)
  7. file(GLOB_RECURSE library "*.cc")
  8. file(GLOB_RECURSE headers "*.h")
  9. # Create a library using the C++ files
  10. add_library(apt-private SHARED ${library})
  11. # Link the library and set the SONAME
  12. target_link_libraries(apt-private PUBLIC apt-pkg)
  13. set_target_properties(apt-private PROPERTIES VERSION ${MAJOR}.${MINOR})
  14. set_target_properties(apt-private PROPERTIES SOVERSION ${MAJOR})
  15. add_version_script(apt-private)
  16. # Install the library and the headers
  17. install(TARGETS apt-private
  18. LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
  19. NAMELINK_SKIP)
  20. flatify(${PROJECT_BINARY_DIR}/include/apt-private/ "${headers}")