Cheers chap. K.
-----Original Message----- From: [email protected] on behalf of Philip Lowman Sent: Thu 30/04/2009 13:05 To: OpenSceneGraph Users Subject: Re: [osg-users] OSG's CMakeLists.txt The PREFIX property does this: SET_TARGET_PROPERTIES(${TARGET_TARGETNAME} PROPERTIES PREFIX "../") For how it's used in the OSG's cmake macros, see OsgMacroUtils.cmake in SETUP_EXE() and SETUP_PLUGIN() http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/CMakeModules/OsgMacroUtils.cmake On Thu, Apr 30, 2009 at 6:49 AM, Kim C Bale <[email protected]> wrote: > I'm trying to create a CMake project for an initial release of osgOcean > and I'd like to follow the OSG's convention of piling all debug and release > libs and dlls into bin and lib folders appending D onto the end of the debug > libraries. > > > > I'm quite new to CMake and I'm finding this quite frustrating, when you > create the visual studio project it appends debug or release to the file > path and nothing I can do will change its mind. > > > > I notice that there's a hack for it, as it's mentioned in the OSG's main > CMakeLists (see below). > > > > ..but I can't spot the hack.. where is it? > > > > Apologies for the off topic post but I've trawled the net for it and found > nothing, and I figured I'd get the quickest response about this here since > some of you clearly know your CMake onions. > > > > > > Cheers. > > > > Kim. > > > > > > > ######################################################################################################## > > # the following options are MSVC specific, > > # the first OSG_MSVC_VERSIONED_DLL activate a custom build-time layout that > should allow to run examples and application > > # fron bin folder without requiring installation step. > > # it also prepend "osg${OPENSCENEGRAPH_SOVERSION}-" to only .dll files, > leaving .lib files untouched in lib > > # it also use a hack to get rid of Debug and Release folder in MSVC > projects > > # all the .dll and .pdb are in bin and all the .lib and .exp are in lib > > # > > # the second option disable incremental linking in debug build , that is > enabled by default by CMake > > > ########################################################################################################## > > > > > > > ***************************************************************************************** > To view the terms under which this email is distributed, please go to > http://www.hull.ac.uk/legal/email_disclaimer.html > > ***************************************************************************************** > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- Philip Lowman
<<winmail.dat>>
***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html *****************************************************************************************
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

