Hi Sherman and Luigi,

cmake -DWIN32_USE_MP=ON
-DGDAL_INCLUDE_DIR:PATH="%rootdir%\3rdparty\gdal\include"
-DGDAL_LIBRARY:PATH="%rootdir%\3rdparty\gdal\lib\gdal_i.lib"
-DCURL_LIBRARY_DEBUG:PATH="%rootdir%\3rdparty\curl\lib\debug\curllib.lib"
-DCURL_LIBRARY:PATH="%rootdir%\3rdparty\curl\lib\release\curllib.lib"
-DCURL_INCLUDE_DIR:PATH="%rootdir%\3rdparty\curl\include"
-DCMAKE_INSTALL_PREFIX:PATH="%rootdir%\3rdparty\osg\common\OpenSceneGraph"
.

Good tip on using -D to specify the paths. We should add this to the wiki's CMake page perhaps? (a "tips and tricks" section would be nice, since most people only use CMake for OSG and therefore are unfamiliar with these kinds of things)

I use this in my master build script to build everything. I simply
fire off a single script and go grab some lunch! To use Visual Studio
from the command line after cmake is done I use:

devenv OpenSceneGraph.sln /%1 "Debug" /project "ALL_BUILD" /out %logfile%
devenv OpenSceneGraph.sln /%1 "Debug" /project "INSTALL" /out %logfile%
devenv OpenSceneGraph.sln /%1 "RelWithDebInfo" /project "ALL_BUILD"
/out %logfile%
devenv OpenSceneGraph.sln /%1 "RelWithDebInfo" /project "INSTALL" /out %logfile%

where %1 is "build" or "rebuild"

Since INSTALL is dependent on ALL_BUILD, you could just use the INSTALL line for debug and release. It would save you the time of restarting VC++ and reloading the solution file twice. e.g.:

devenv OpenSceneGraph.sln /%1 "Debug" /project "INSTALL" /out %logfile%
devenv OpenSceneGraph.sln /%1 "RelWithDebInfo" /project "INSTALL" /out %logfile%

But this could also go on the wiki. It's been discussed a few times, I know, so it's in the archives, but most people read the wiki before they search the archives. And it's a good tip.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to