[CMake] Re: Controling OutputDirectory in the vcprojs

Fernando Cacciola fernando.cacciola at gmail.com
Thu Dec 13 07:34:35 EST 2007


Hi Again,

FWIW here's how I managed to have mangled names in the output *and* in the 
right folder instead of $(OutDir).

project(FOO)

add_library(FOO foo.cpp)

set_target_properties( FOO PROPERTIES DEBUG_OUTPUT_NAME "foo-debug" 
RELEASE_OUTPUT_NAME "foo-release")

add_custom_command(TARGET FOO POST_BUILD COMMAND copy $(TargetPath) 
$(ProjectDir) )

Best


-- 
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com




More information about the CMake mailing list