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
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
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
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:
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
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
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
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
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
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 "../")
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
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
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
13 matches
Mail list logo