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:
@@ -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}
|
||||
|
||||
14
packaging/pkgconfig/openscenegraph.pc.in
Normal file
14
packaging/pkgconfig/openscenegraph.pc.in
Normal 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}
|
||||
@@ -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
|
||||
|
||||
14
packaging/pkgconfig/openthreads.pc.in
Normal file
14
packaging/pkgconfig/openthreads.pc.in
Normal 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}
|
||||
Reference in New Issue
Block a user