From 9fb3816160af9c9f0fc6335882847fba3f4ed7ea Mon Sep 17 00:00:00 2001 From: Pasha Bibko <156938226+PashaBibko@users.noreply.github.com> Date: Tue, 22 Jul 2025 18:38:30 +0100 Subject: [PATCH] Updated output directory --- .gitignore | 5 +++++ CMakeLists.txt | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index b07dc7e..3d67197 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,10 @@ out/ .vs/slnx.sqlite .vs/VSWorkspaceState.json +# Excludes binary outputs in root dir # +*.exe +*.ilk +*.pdb + # Ignores the log output file of the .exe # LXC.log diff --git a/CMakeLists.txt b/CMakeLists.txt index 14fe39d..15bbfd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,9 @@ set(CMAKE_CXX_EXTENSIONS OFF) project(LXC_Project LANGUAGES CXX) +# Makes .exes be outputted within the root directory # +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}) + # Adds the sub-directories of all of the binaries # add_subdirectory(Lexer)