Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-24 Thread Jean-Sébastien Guay
Hello Abhinav, hey dear Err, dear? We don't even know each other. :-) it works but the only problem is that it creates a subfolder DEBUG under BIN which i dont want ..i want the files to directly come under BIN. Any solution for this??? Weird, for me it goes directly into bin. For exampl

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-24 Thread Abhinav Dubey
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY $ENV{N3DBINARY_PATH}/N3DApp/Derived/bin/plugins) SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY $ENV{N3DBINARY_PATH}/N3DApp/Derived/bin/plugins) SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-24 Thread Abhinav Dubey
Luigi Calori wrote: > Hey Abhinav did you tried my early suggestion? > > put >../< in front of your name or prefix property as I' ve > already suggested. > the >../< hack is also used in osg CMake files, look at > OsgMacroUtils.cmake, in particular line 263 > > Luigi > > Abh

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-24 Thread Luigi Calori
Hey Abhinav did you tried my early suggestion? put >../< in front of your name or prefix property as I' ve already suggested. the >../< hack is also used in osg CMake files, look at OsgMacroUtils.cmake, in particular line 263 Luigi Abhinav Dubey ha scritto: Skylark wrote:

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Abhinav Dubey
Skylark wrote: > Hello Abhinav, > > > > but i want to directly get these files in bin instead of copying them. can > > yoyu uggest the code for it!! > > > > You don't need to change anything in CMake to get binaries in bin, just > set CMAKE_INSTALL_PREFIX = (your OSG directory) and build the

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Luigi Calori
It depends if you want them put there at INSTALL time or at BUILD time. CMAKE_INSTALL_PREFIX set the installation path If you want the dll and ex in bin at BUILD time, as I' ve already suggested, set RUNTIME_OUTPUT_DIRECTORY in bin AND put >../< in front of your name or prefix prope

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Abhinav Dubey
Skylark wrote: > Hello Abhinav, > > > > but i want to directly get these files in bin instead of copying them. can > > yoyu uggest the code for it!! > > > > You don't need to change anything in CMake to get binaries in bin, just > set CMAKE_INSTALL_PREFIX = (your OSG directory) and build the

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Jean-Sébastien Guay
Hello Abhinav, but i want to directly get these files in bin instead of copying them. can yoyu uggest the code for it!! You don't need to change anything in CMake to get binaries in bin, just set CMAKE_INSTALL_PREFIX = (your OSG directory) and build the INSTALL project in the VS solution. T

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Abhinav Dubey
will dis put the .exe file directly in bin folder without creating a copy in debug folder?? because what i actually want is when i debug my project the .exe file gets created in bin folder and run from there!! -- Read this topic online here: http://forum.openscenegraph.org/viewt

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Luigi Calori
Try this SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${your_exe_dir} ) SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${your_lib_dir} ) IF(MSVC_IDE) SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES PREFIX "../")

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Abhinav Dubey
i know that way it can be done..but i am using Qt+VS+Cmake and need to do this cia CMakeLists.txt. right now what i am doing is that i copy these file from the repective folders as a post build even. the code i am using is: if(WIN32) add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD

Re: [osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Vincent Bourdier
Hi, You don't need Cmake for that, just run into VS project properties -> Linker -> General -> output file (or similar, my VS is in French) Same thing for the .pdb file in properties -> Linker-> debug Regards, Vincent. 2009/4/23 Abhinav Dubey > Hi, > i am building my project in VS2005. rig

[osg-users] [build] how do i generate project.exe file and .pdb file in specified folder

2009-04-23 Thread Abhinav Dubey
Hi, i am building my project in VS2005. right now the .exe file and .pdb file go in debug folder but i want the to go in the bin folder instead and run from there. plz suggest the CMakeList.txt code for it ... Thank you. -- Read this topic online here: http://forum.openscenegra