summaryrefslogtreecommitdiffstats
path: root/libk8055
diff options
context:
space:
mode:
Diffstat (limited to 'libk8055')
-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}