Hi, I'd like to suggest that Equalizer installs a pkg-config .pc file for libEqualizer.so. This would make it easier for applications to find it and to make sure that the right version is available.
The attached patch does this. It introduces a new CMake variable VERSION that is substituted in the .pc file; maybe you prefer a different way of doing this. Regards, Martin -- Computer Graphics and Multimedia Systems Group University of Siegen, Germany http://www.cg.informatik.uni-siegen.de/
Index: lib/Equalizer.pc.in
===================================================================
--- lib/Equalizer.pc.in (revision 0)
+++ lib/Equalizer.pc.in (revision 0)
@@ -0,0 +1,14 @@
+# pkg-config source file
+
+pref...@cmake_install_prefix@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: Equalizer
+Description: Middleware to create and deploy parallel OpenGL-based applications
+Version: @VERSION@
+Requires:
+Conflicts:
+Libs: -L${libdir}
+Cflags: -I${includedir}
Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt (revision 4904)
+++ lib/CMakeLists.txt (working copy)
@@ -77,3 +77,6 @@
string(REGEX MATCH "(.*)[/\\]" DIR ${HEADER})
install(FILES ${HEADER} DESTINATION include/eq/${DIR} COMPONENT dev)
endforeach(HEADER ${HEADERS})
+
+configure_file(Equalizer.pc.in Equalizer.pc @ONLY)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Equalizer.pc DESTINATION lib/pkgconfig COMPONENT dev)
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 4904)
+++ CMakeLists.txt (working copy)
@@ -4,6 +4,8 @@
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(Equalizer)
+set(VERSION 0.9.2)
+
enable_testing()
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ eq-dev mailing list [email protected] http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

