[osg-submissions] API configurations in a seperate Config include file
Jean-Sébastien Guay
jean-sebastien.guay at cm-labs.com
Fri Jun 20 20:00:14 PDT 2008
Hi Bob,
> oh, fyi, i never do installs, so that technique is out for me.
> installing means putting stuff in a system-ish spot, and i like to have
> have a clean development machine. another reason i don't install is so i
> can build/test against multiple versions of osg. all i do is switch
> where the my build cmake stuff looks to find osg headers and osg
> binaries, and i'm off.
When running ccmake, you have a setting called CMAKE_INSTALL_PREFIX.
Just change that to install anywhere. I generally set it to some
subdirectory of my home directory, as I don't like to install OSG to a
system-wide location either, i.e.
CMAKE_INSTALL_PREFIX = /home/guayj/local_apps/OpenSceneGraph
So in your case, even if you want to build/test against multiple
versions of OSG, just set CMAKE_INSTALL_PREFIX to different values and
you're off. :-) That way you can also not duplicate the build directory
if you don't need to.
Then you could use 'make install'. Sure, it probably shouldn't be made a
requirement, and some people are against 'make install' even if they
don't have any reason to be, but there you are.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.guay at cm-labs.com
http://www.cm-labs.com/
http://whitestar02.webhop.org/
More information about the osg-submissions
mailing list