Hi Lawrence,

On 19 April 2012 16:19, Lawrence Tsang <[email protected]> wrote:
> in the CMakeLists.txt file or in the bash shell execute
>
> export OSG_DIR="/home/tkwinfo/OpenSceneGraph-3.0.1-build-eclipse-cdt"
>
> and then use my original posted CMakeLists.txt to create CMake projects that
> use the OpenSceneGraph libraries.

When I say OSG_DIR environmental variable the above usage is exactly
what I mean.  For convenience I personally set OSG_DIR in .osgrc file
that I have my   .bashrc include, so that any time I build a project
that uses the OSG that I have built locally it can pick it up.  I
don't usually build out of source so the headers and libs are all in
one place.

One approach that some users take is to build the OSG then install
headers and libs into a user directory and then set the OSG_DIR to
this local install location.

Robert.



Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to