Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

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

Subv8712c9dcd6df
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbe9f76cd4..05a560404e 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)