diff --git a/CMakeLists.txt b/CMakeLists.txt index 29f09efb..0733d83b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -551,7 +551,20 @@ configure_file( @ONLY ) +configure_file( + "${CMAKE_SOURCE_DIR}/other/pkgconfig/libtoxcore.pc.in" + "${CMAKE_BINARY_DIR}/libtoxcore.pc" + @ONLY +) + +configure_file( + "${CMAKE_SOURCE_DIR}/other/pkgconfig/libtoxav.pc.in" + "${CMAKE_BINARY_DIR}/libtoxav.pc" + @ONLY +) + install(FILES + ${CMAKE_BINARY_DIR}/libtoxcore.pc ${CMAKE_BINARY_DIR}/toxcore.pc ${CMAKE_BINARY_DIR}/toxdns.pc ${CMAKE_BINARY_DIR}/toxencryptsave.pc @@ -564,6 +577,7 @@ install(FILES if(BUILD_TOXAV) install(FILES + ${CMAKE_BINARY_DIR}/libtoxav.pc ${CMAKE_BINARY_DIR}/toxav.pc DESTINATION "lib/pkgconfig") install(FILES diff --git a/other/pkgconfig/libtoxav.pc.in b/other/pkgconfig/libtoxav.pc.in new file mode 100644 index 00000000..e0b95b48 --- /dev/null +++ b/other/pkgconfig/libtoxav.pc.in @@ -0,0 +1,8 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: libtoxav +Description: Tox A/V library - compatibility module (use toxav instead) +Requires: toxav +Version: @PROJECT_VERSION@ diff --git a/other/pkgconfig/libtoxcore.pc.in b/other/pkgconfig/libtoxcore.pc.in new file mode 100644 index 00000000..c5588bb4 --- /dev/null +++ b/other/pkgconfig/libtoxcore.pc.in @@ -0,0 +1,8 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: libtoxcore +Description: Tox protocol library - compatibility module (use toxcore, toxdns, and toxencryptsave instead) +Requires: toxcore toxdns toxencryptsave +Version: @PROJECT_VERSION@