summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-08-05 15:33:13 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-08-05 15:33:13 +0200
commitab49c115bdeaa1f2bdc07318560ffa90890ab356 (patch)
tree4ea3411454d5c9d07924a5f08cb09d794f2f1f40
parent2b1e3a557986a4a3152521984947e34fe8ce2d01 (diff)
downloadk8055-ab49c115bdeaa1f2bdc07318560ffa90890ab356.zip
k8055-ab49c115bdeaa1f2bdc07318560ffa90890ab356.tar.gz
generate and install k8055.pc
-rw-r--r--libk8055/CMakeLists.txt3
-rw-r--r--libk8055/k8055.pc.in10
2 files changed, 13 insertions, 0 deletions
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}