ソースを参照

Merge pull request #240 from Subv/cmake

CMake: Place all built files in a single folder in MSVC
bunnei 11 年 前
コミット
9889a775b4
1 ファイル変更2 行追加0 行削除
  1. 2 0
      CMakeLists.txt

+ 2 - 0
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)