diff options
author | Thomas White <taw@physics.org> | 2018-03-28 11:38:55 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-03-28 11:39:05 +0200 |
commit | 3acd99472ac6debed64ce25a0c545c2c9b974ae2 (patch) | |
tree | d2cc959c743127df35a2ba45cbcac38716f4c0e8 | |
parent | 665888986b9a3ca629b8fd54965d621296bd56bb (diff) |
Stuff for crystfel.pc
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rw-r--r-- | libcrystfel/crystfel.pc.in | 15 |
2 files changed, 13 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 773d246e..660f3233 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,11 @@ add_subdirectory(libcrystfel) enable_testing() add_subdirectory(tests) +# crystfel.pc +configure_file(libcrystfel/crystfel.pc.in crystfel.pc) +install(FILES ${CMAKE_BINARY_DIR}/crystfel.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + # API docs find_package(GtkDoc 1.25) if (GTKDOC_FOUND) diff --git a/libcrystfel/crystfel.pc.in b/libcrystfel/crystfel.pc.in index 3e9bf89b..7539cad1 100644 --- a/libcrystfel/crystfel.pc.in +++ b/libcrystfel/crystfel.pc.in @@ -1,10 +1,11 @@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -libdir=@libdir@ -includedir=@includedir@ +prefix=${CMAKE_INSTALL_PREFIX} +exec_prefix=${CMAKE_INSTALL_PREFIX} +libdir=${CMAKE_INSTALL_FULL_LIBDIR} +includedir=${CMAKE_INSTALL_FULL_INCLUDEDIR} Name: CrystFEL Description: Useful routines for crystallography using a free-electron laser -Version: @VERSION@ -Cflags: -I${includedir} @LIBCRYSTFEL_CFLAGS@ -Libs: -L${libdir} -lcrystfel @LIBCRYSTFEL_LIBS@ +Version: ${PROJECT_VERSION}+${GIT_SHA1} +Cflags: -I${CMAKE_INSTALL_FULL_INCLUDEDIR} -pthread +Libs: -L${CMAKE_INSTALL_FULL_LIBDIR} -lcrystfel +Requires: gsl |