aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/Makefile.am3
-rw-r--r--libcrystfel/crystfel.pc.in10
2 files changed, 13 insertions, 0 deletions
diff --git a/libcrystfel/Makefile.am b/libcrystfel/Makefile.am
index 2a02a20b..4c857152 100644
--- a/libcrystfel/Makefile.am
+++ b/libcrystfel/Makefile.am
@@ -29,3 +29,6 @@ libcrystfel_la_include_HEADERS = src/beam-parameters.h src/hdf5-file.h \
INCLUDES = "-I$(top_srcdir)/data"
AM_CPPFLAGS = -DDATADIR=\""$(datadir)"\" -I$(top_builddir)/lib -Wall
AM_CPPFLAGS += -I$(top_srcdir)/lib @LIBCRYSTFEL_CFLAGS@
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = crystfel.pc
diff --git a/libcrystfel/crystfel.pc.in b/libcrystfel/crystfel.pc.in
new file mode 100644
index 00000000..bb7ba2c3
--- /dev/null
+++ b/libcrystfel/crystfel.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: CrystFEL
+Description: Useful routines for crystallography using a free-electron laser
+Version: @VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lcrystfel