diff options
-rw-r--r-- | CMakeLists.txt | 14 | ||||
-rw-r--r-- | other/pkgconfig/libtoxav.pc.in | 8 | ||||
-rw-r--r-- | other/pkgconfig/libtoxcore.pc.in | 8 |
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 | ||
554 | configure_file( | ||
555 | "${CMAKE_SOURCE_DIR}/other/pkgconfig/libtoxcore.pc.in" | ||
556 | "${CMAKE_BINARY_DIR}/libtoxcore.pc" | ||
557 | @ONLY | ||
558 | ) | ||
559 | |||
560 | configure_file( | ||
561 | "${CMAKE_SOURCE_DIR}/other/pkgconfig/libtoxav.pc.in" | ||
562 | "${CMAKE_BINARY_DIR}/libtoxav.pc" | ||
563 | @ONLY | ||
564 | ) | ||
565 | |||
554 | install(FILES | 566 | install(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 | ||
565 | if(BUILD_TOXAV) | 578 | if(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 @@ | |||
1 | prefix=@CMAKE_INSTALL_PREFIX@ | ||
2 | libdir=${prefix}/lib | ||
3 | includedir=${prefix}/include | ||
4 | |||
5 | Name: libtoxav | ||
6 | Description: Tox A/V library - compatibility module (use toxav instead) | ||
7 | Requires: toxav | ||
8 | 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 @@ | |||
1 | prefix=@CMAKE_INSTALL_PREFIX@ | ||
2 | libdir=${prefix}/lib | ||
3 | includedir=${prefix}/include | ||
4 | |||
5 | Name: libtoxcore | ||
6 | Description: Tox protocol library - compatibility module (use toxcore, toxdns, and toxencryptsave instead) | ||
7 | Requires: toxcore toxdns toxencryptsave | ||
8 | Version: @PROJECT_VERSION@ | ||