Skip to content
Permalink
Browse files

c wrapper: add pkg-config file

  • Loading branch information...
aberaud committed Oct 16, 2019
1 parent 83c5014 commit 12aee01ffee0f0df5746464db507c6fc613e20fa
Showing with 17 additions and 0 deletions.
  1. +7 −0 CMakeLists.txt
  2. +10 −0 opendht-c.pc.in
@@ -322,6 +322,13 @@ if (OPENDHT_C)
)
target_compile_definitions(opendht-c PRIVATE OPENDHT_C_BUILD)
target_link_libraries(opendht-c opendht)
# PkgConfig module
configure_file (
opendht-c.pc.in
opendht-c.pc
@ONLY
)
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/opendht-c.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endif ()

if (OPENDHT_TOOLS)
@@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: OpenDHT (C Wrapper)
Description: Distributed Hash Table library (C Wrapper)
Version: @VERSION@
Libs: -L${libdir} -lopendht-c
Requires.private: opendht gnutls >= 3.1 @argon2_lib@
Cflags: -I${includedir}

0 comments on commit 12aee01

Please sign in to comment.
You can’t perform that action at this time.