Hi Jean-Sébastien, Thanks, I will go ahead and add these to the trunk. I am going to keep the existing Visual Studio projects though. The existing projects can be used for both 32 and 64-bit builds. I even wrote a Python script in the "Setup" folder that automates building the Visual Studio projects for each version/platform and creates the installer.
Cheers, Farshid On Thu, May 5, 2011 at 1:17 PM, Jean-Sébastien Guay < jean-sebastien.g...@cm-labs.com> wrote: > Hello Farshid, > > I have made a CMake configuration to be able to generate build files for > OSGExp. My main motivation for this was to be able to specify the Max SDK > and OSG directories more easily than directly modifying the VS Project files > for each of the 3 projects... > > To find the Max SDK, it will use the MAXSDK environment variable as the VS > project files did. To find OSG, it uses the FindOSGHelper.cmake that Paul > Martz did for osgWorks - since both osgWorks and OSGExp are LGPL, I think > there's no problem there. > > One nice thing is it will use the 32 bit or 64 bit Max SDK libs depending > on whether you're building for 32 or 64 bit. It can't do the same for OSG > since there's no standard convention for installing both 32 and 64 bit OSG > side by side, so we just take in on faith that the user will specify the > right build of OSG or else there will be compile/link errors. > > Also, if you specify a Max installation directory, it will copy > Previewer.dll to that directory (as required for the plugin to work). It is > expected that you will set CMAKE_INSTALL_PREFIX to the directory that you > specify in Max's plugin.ini so that doing the INSTALL target will do all > that's needed to install a newly compiled version of the plugin without any > manual intervention. > > Since I didn't see any makefiles and I don't even know if 3dsmax exists for > other platforms than Windows, I have not included anything that is not > Windows in the CMake files. This can be added if needed later. > > Hope this is useful. If you have any questions, let me know. The zip file > should be unzipped in the source tree and consists only of files that need > to be added in svn... No code changes. You can decide if you want to keep > the existing Visual Studio project files or not, but this completely > supersedes them (apart from the fact that you could build both 32 and 64 bit > from the same solution - with the CMake files you'll have to generate 2 sets > of solution/project files and build them independently). > > Thanks, > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com > http://www.cm-labs.com/ > http://whitestar02.dyndns-web.com/ > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org