I' m not really expert in CMake but looking at docs http://www.cmake.org/HTML/Documentation.html it seems that since 2.4.4 there is a target property called <CONFIG>_LOCATION that can be retrieved with GET_TARGET_PROPERTY. This property is reported to be Read Only so you can just GET it but not SET it. There is another property called <CONFIG>_OUTPUT_NAME but it seem ale to just set the real name , not the path. (I never tried to set up a path name for it) So I think if you really want the proposed layout at build time we have to set up a post_build step to move things where you want. Anyway the install step is currently setting up all dll (even plugins) to stay in the same <install_prefix>\bin folder.

If you are interest I' m trying to add to the build process a step that configure some .bat files to capture the folder used at build time to allow setting env vars to be able to run applications and commands
from build layout.

Hope it helps

Robert Osfield wrote:

HI Serge,

You could probably set up CMake to do this, but I'm the an expert in
CMake so can't suggest what changes to make.

One approach you could take right now is to simply have two build
trees - one of release, one for debug, and run cmake separately to
generate the build separately.

Robert.

On 5/22/07, Serge Lages <[EMAIL PROTECTED]> wrote:

Hi Robert,

Changing my scripts I was wondering if it should be possible to make a
little modification on the CMake build directories (under Windows).
Currently when I build OSG I have into the lib directory the following
directory tree :

- debug (core dll inside)
- release (core dll inside)
- osgPlugins-1.9.5
- debug (plugins dll inside)
- release (plugins dll inside)
Should it be possible and maybe should it be more logical to have it like
that :

- debug (core dll inside)
- osgPlugins-1.9.5 (plugins dll inside)
- release (core dll inside)

- osgPlugins-1.9.5 (plugins dll inside)
Like that, when looking for the dlls, it allows to only copy the content of
the debug or release directories depending on the configuration.


--
Serge Lages
http://www.magrathea-engine.org
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/



_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to