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 "../")
<or>

SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES RELEASE_OUTPUT_NAME "../${TARGET_NAME}") SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES DEBUG_OUTPUT_NAME "../${TARGET_NAME}D")


   ENDIF(MSVC_IDE)

Not sure where the pdb will be put though.... I' m using the latest ( 2.6.3) cmake

Hope it helps

Luigi

Abhinav Dubey ha scritto:
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
                COMMAND md ARGS
                $ENV{N3DBINARY_PATH}\\bin               
                COMMAND copy ARGS 
$ENV{N3DBINARY_PATH}\\${CMAKE_CFG_INTDIR}\\${PROJECT_NAME}*.exe
                $ENV{N3DBINARY_PATH}\\bin
                COMMAND if $(ConfigurationName) == Debug copy ARGS 
$ENV{N3DBINARY_PATH}\\${CMAKE_CFG_INTDIR}\\${PROJECT_NAME}*.pdb
                $ENV{N3DBINARY_PATH}\\bin
                )
endif(WIN32)
but i want to directly get these files in bin instead of copying them. can yoyu 
uggest the code for it!!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=10697#10697





_______________________________________________
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

Reply via email to