blob: 36d69f152750d241f26b3bd6ec546248b6797f74 [file] [log] [blame]
From 9effdba99c1f4497031f5725067788b90706d069 Mon Sep 17 00:00:00 2001
From: Sylvain Joyeux <sylvain.joyeux@m4x.org>
Date: Mon, 13 Apr 2015 17:01:07 -0300
Subject: [PATCH] add a pkg-config file
---
src/osgOcean/CMakeLists.txt | 4 ++++
src/osgOcean/osgOcean.pc.in | 12 ++++++++++++
2 files changed, 16 insertions(+)
create mode 100644 src/osgOcean/osgOcean.pc.in
diff --git a/src/osgOcean/CMakeLists.txt b/src/osgOcean/CMakeLists.txt
index b79a92f..a80a65c 100644
--- a/src/osgOcean/CMakeLists.txt
+++ b/src/osgOcean/CMakeLists.txt
@@ -152,3 +152,7 @@ INSTALL(
FILES ${TEXTURE_FILES}
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/osgOcean/textures
)
+
+configure_file(osgOcean.pc.in osgOcean.pc @ONLY)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/osgOcean.pc
+ DESTINATION lib/pkgconfig)
diff --git a/src/osgOcean/osgOcean.pc.in b/src/osgOcean/osgOcean.pc.in
new file mode 100644
index 0000000..2dcd108
--- /dev/null
+++ b/src/osgOcean/osgOcean.pc.in
@@ -0,0 +1,12 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=@CMAKE_INSTALL_PREFIX@
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: osgOcean
+Description: OpenSceneGraph node kit to render ocean effects (surface and underwater)
+Version: 1.0.1
+Requires:
+Libs: -L${libdir} -losgOcean
+Cflags: -I${includedir}
+