[CMake] Building to a subdirectory UNDER Debug/Release/etc in a Visual Studio build

Mike Arthur mike at mikearthur.co.uk
Fri Jun 20 10:48:18 EDT 2008


Part 3 in my never-ending quest to replace our Visual-Studio-based build 
system with CMake has me tearing my hair out...

I've set CMAKE_RUNTIME_OUTPUT_DIRECTORY to bin so everything is build 
correctly in bin/Debug or bin/Release depending on the project.

What I'm trying to do now is get something built in bin/Debug/modules or 
bin/Release/modules or, if not built there, then at least copied there later.

I, however, can't seem to find any way in CMake to allow me to do this.

Setting CMAKE_RUNTIME_OUTPUT_DIRECTORY to bin/modules just puts the modules in 
bin/modules/Release or bin/modules/Debug.

Any ideas before I go mad?

Thanks guys!

-- 
Cheers,
Mike Arthur


More information about the CMake mailing list