summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt14
-rw-r--r--other/pkgconfig/libtoxav.pc.in8
-rw-r--r--other/pkgconfig/libtoxcore.pc.in8
3 files changed, 30 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 29f09efb..0733d83b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -551,7 +551,20 @@ configure_file(
551 @ONLY 551 @ONLY
552) 552)
553 553
554configure_file(
555 "${CMAKE_SOURCE_DIR}/other/pkgconfig/libtoxcore.pc.in"
556 "${CMAKE_BINARY_DIR}/libtoxcore.pc"
557 @ONLY
558)
559
560configure_file(
561 "${CMAKE_SOURCE_DIR}/other/pkgconfig/libtoxav.pc.in"
562 "${CMAKE_BINARY_DIR}/libtoxav.pc"
563 @ONLY
564)
565
554install(FILES 566install(FILES
567 ${CMAKE_BINARY_DIR}/libtoxcore.pc
555 ${CMAKE_BINARY_DIR}/toxcore.pc 568 ${CMAKE_BINARY_DIR}/toxcore.pc
556 ${CMAKE_BINARY_DIR}/toxdns.pc 569 ${CMAKE_BINARY_DIR}/toxdns.pc
557 ${CMAKE_BINARY_DIR}/toxencryptsave.pc 570 ${CMAKE_BINARY_DIR}/toxencryptsave.pc
@@ -564,6 +577,7 @@ install(FILES
564 577
565if(BUILD_TOXAV) 578if(BUILD_TOXAV)
566 install(FILES 579 install(FILES
580 ${CMAKE_BINARY_DIR}/libtoxav.pc
567 ${CMAKE_BINARY_DIR}/toxav.pc 581 ${CMAKE_BINARY_DIR}/toxav.pc
568 DESTINATION "lib/pkgconfig") 582 DESTINATION "lib/pkgconfig")
569 install(FILES 583 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 @@
1prefix=@CMAKE_INSTALL_PREFIX@
2libdir=${prefix}/lib
3includedir=${prefix}/include
4
5Name: libtoxav
6Description: Tox A/V library - compatibility module (use toxav instead)
7Requires: toxav
8Version: @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 @@
1prefix=@CMAKE_INSTALL_PREFIX@
2libdir=${prefix}/lib
3includedir=${prefix}/include
4
5Name: libtoxcore
6Description: Tox protocol library - compatibility module (use toxcore, toxdns, and toxencryptsave instead)
7Requires: toxcore toxdns toxencryptsave
8Version: @PROJECT_VERSION@