CMake: Place all the built files in BUILD_DIR/bin/<Configuration> when compiling with MSVC

This commit is contained in:
Subv 2014-12-01 18:48:27 -05:00 committed by ichfly
parent 7d38dbb1b1
commit ca3091ece3

View file

@ -9,6 +9,8 @@ if (NOT MSVC)
else()
# Silence deprecation warnings
add_definitions(/D_CRT_SECURE_NO_WARNINGS)
# set up output paths for executable binaries (.exe-files, and .dll-files on DLL-capable platforms)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
endif()
add_definitions(-DSINGLETHREADED)