From Alberto Luaces, "I have modified CMakeLists.txt in order to make CMake fill the existent

openscenegraph.pc and openthreads.pc files with OSG's installation values.
Then I install those files into the expected path for pkg-config (this can
also be modified through PKG_CONFIG_PATH environment variable). Therefore
those of us who are using pkg-config for linking can easily select which
version of OSG we want to use."
This commit is contained in:
Robert Osfield
2009-01-27 15:34:28 +00:00
parent a7b057feee
commit 0308a2005e
4 changed files with 33 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
# pkg-config source file
prefix=/usr
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
libdir=${exec_prefix}/lib64
includedir=${prefix}/include
Name: openscenegraph
@@ -10,5 +10,5 @@ Description: 3D scenegraph
Version: 2.7.9
Requires: openthreads
Conflicts:
Libs: -L${libdir} -losg -losgDB -losgFX -losgGA -losgParticle -losgSim -losgText -losgUtil -losgTerrain -losgManipulator -losgViewer -losgWidget
Libs: -L${libdir} -losg -losgDB -losgFX -losgGA -losgParticle -losgSim -losgText -losgUtil -losgTerrain -losgManipulator -losgViewer -losgWidget -losgShadow -losgAnimation -losgVolume
Cflags: -I${includedir}

View File

@@ -0,0 +1,14 @@
# pkg-config source file
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib@LIB_POSTFIX@
includedir=${prefix}/include
Name: openscenegraph
Description: 3D scenegraph
Version: @OPENSCENEGRAPH_VERSION@
Requires: openthreads
Conflicts:
Libs: -L${libdir} -losg -losgDB -losgFX -losgGA -losgParticle -losgSim -losgText -losgUtil -losgTerrain -losgManipulator -losgViewer -losgWidget -losgShadow -losgAnimation -losgVolume
Cflags: -I${includedir}

View File

@@ -1,8 +1,8 @@
# pkg-config source file
prefix=/usr
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
libdir=${exec_prefix}/lib64
includedir=${prefix}/include
Name: openthreads

View File

@@ -0,0 +1,14 @@
# pkg-config source file
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib@LIB_POSTFIX@
includedir=${prefix}/include
Name: openthreads
Description: Object-Oriented (OO) thread interface for C++ programmers
Version: @OPENTHREADS_VERSION@
Requires:
Conflicts:
Libs: -L${libdir} -lOpenThreads
Cflags: -I${includedir}