From ab49c115bdeaa1f2bdc07318560ffa90890ab356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 5 Aug 2013 15:33:13 +0200 Subject: generate and install k8055.pc --- libk8055/CMakeLists.txt | 3 +++ libk8055/k8055.pc.in | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 libk8055/k8055.pc.in diff --git a/libk8055/CMakeLists.txt b/libk8055/CMakeLists.txt index cb7df5a..bd6302b 100644 --- a/libk8055/CMakeLists.txt +++ b/libk8055/CMakeLists.txt @@ -39,5 +39,8 @@ TARGET_LINK_LIBRARIES(k8055 ) ADD_DEPENDENCIES(k8055 k8055-${VERSION}) +CONFIGURE_FILE(k8055.pc.in k8055.pc @ONLY) + INSTALL(TARGETS k8055 RUNTIME DESTINATION bin BUNDLE DESTINATION bin ) INSTALL(FILES k8055.1.gz DESTINATION man/man1/ ) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/k8055.pc DESTINATION lib/pkgconfig ) diff --git a/libk8055/k8055.pc.in b/libk8055/k8055.pc.in new file mode 100644 index 0000000..5c5ce08 --- /dev/null +++ b/libk8055/k8055.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: k8055 +Description: Velleman k8055 USB Experiment Interface Board driver +Version: @VERSION@ +Libs: -L${libdir} -lk8055 +Cflags: -I${includedir} -- cgit v1.1-2-g2b99