Skip to content

Commit

Permalink
Add pkg-config support
Browse files Browse the repository at this point in the history
  • Loading branch information
ronawho committed Sep 7, 2023
1 parent ba3ffd1 commit 08d004f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ EXTRA_DIST = \
TODO.md \
autogen.sh

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = qthread.pc

SUBDIRS = man include src test

ACLOCAL_AMFLAGS = -I config
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,7 @@ AC_CONFIG_HEADERS([include/config.h include/qthread/common.h])
AC_CONFIG_FILES([Makefile
src/Makefile
man/Makefile
qthread.pc
man/man3/Makefile
include/Makefile
Expand Down
12 changes: 12 additions & 0 deletions qthread.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@

Name: qthreads
Description: Lightweight locality-aware user-level threading runtime.
URL: https://github.com/sandialabs/qthreads
Version: @VERSION@
Cflags: -I${includedir}
Libs: -L${libdir} -lqthread
Libs.private: @LIBS@

0 comments on commit 08d004f

Please sign in to comment.