From 8712c9dcd6df69866248328ab37c1e1b986d94bd Mon Sep 17 00:00:00 2001 From: Subv Date: Mon, 1 Dec 2014 18:48:27 -0500 Subject: CMake: Place all the built files in BUILD_DIR/bin/ when compiling with MSVC --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index bbe9f76c..05a56040 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- cgit v1.2.3