cmake: place binaries together in the build tree

This allows Windows to copy binaries to one place rather than to each
executable directory.
This commit is contained in:
Ben Boeckel 2014-11-18 17:02:28 -05:00
parent 18c56abe4b
commit ec54e2f82b

View file

@ -60,6 +60,9 @@ function (bitmonero_add_executable name)
set_property(TARGET "${name}" set_property(TARGET "${name}"
PROPERTY PROPERTY
FOLDER "prog") FOLDER "prog")
set_property(TARGET "${name}"
PROPERTY
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
if (STATIC) if (STATIC)
set_property(TARGET "${name}" set_property(TARGET "${name}"