From 036e84d2c14dd24c7e8977307593b82d5e45257e Mon Sep 17 00:00:00 2001 From: AdmiralEmser Date: Sun, 2 Oct 2022 23:43:02 +0200 Subject: [PATCH] cleanup --- CMakeLists.txt | 9 +++++++++ FC-Chess/CMakePresets.json => CMakePresets.json | 0 FC-Chess/CMakeLists.txt | 14 +++++++++----- FC-Chess/{FC-Chess => }/FC-Chess.cpp | 0 FC-Chess/{FC-Chess => }/FC-Chess.h | 0 FC-Chess/FC-Chess/CMakeLists.txt | 13 ------------- FC-Chess/{FC-Chess => }/graphics.cpp | 0 FC-Chess/{FC-Chess => }/graphics.h | 0 FC-Chess/{FC-Chess => }/main.cpp | 0 FC-Chess/to do.md => to do.md | 0 10 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 CMakeLists.txt rename FC-Chess/CMakePresets.json => CMakePresets.json (100%) rename FC-Chess/{FC-Chess => }/FC-Chess.cpp (100%) rename FC-Chess/{FC-Chess => }/FC-Chess.h (100%) delete mode 100644 FC-Chess/FC-Chess/CMakeLists.txt rename FC-Chess/{FC-Chess => }/graphics.cpp (100%) rename FC-Chess/{FC-Chess => }/graphics.h (100%) rename FC-Chess/{FC-Chess => }/main.cpp (100%) rename FC-Chess/to do.md => to do.md (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..714c777 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,9 @@ +# CMakeList.txt : Top-level CMake project file, do global configuration +# and include sub-projects here. +# +cmake_minimum_required (VERSION 3.8) + +project ("FC-Chess") + +# Include sub-projects. +add_subdirectory ("FC-Chess") diff --git a/FC-Chess/CMakePresets.json b/CMakePresets.json similarity index 100% rename from FC-Chess/CMakePresets.json rename to CMakePresets.json diff --git a/FC-Chess/CMakeLists.txt b/FC-Chess/CMakeLists.txt index 714c777..a6486b3 100644 --- a/FC-Chess/CMakeLists.txt +++ b/FC-Chess/CMakeLists.txt @@ -1,9 +1,13 @@ -# CMakeList.txt : Top-level CMake project file, do global configuration -# and include sub-projects here. +# CMakeList.txt : CMake project for FC-Chess, include source and define +# project specific logic here. # cmake_minimum_required (VERSION 3.8) -project ("FC-Chess") +# Add source to this project's executable. +add_executable (FC-Chess "main.cpp" "fc-chess.cpp" "graphics.cpp") -# Include sub-projects. -add_subdirectory ("FC-Chess") +if (CMAKE_VERSION VERSION_GREATER 3.12) + set_property(TARGET FC-Chess PROPERTY CXX_STANDARD 20) +endif() + +# TODO: Add tests and install targets if needed. diff --git a/FC-Chess/FC-Chess/FC-Chess.cpp b/FC-Chess/FC-Chess.cpp similarity index 100% rename from FC-Chess/FC-Chess/FC-Chess.cpp rename to FC-Chess/FC-Chess.cpp diff --git a/FC-Chess/FC-Chess/FC-Chess.h b/FC-Chess/FC-Chess.h similarity index 100% rename from FC-Chess/FC-Chess/FC-Chess.h rename to FC-Chess/FC-Chess.h diff --git a/FC-Chess/FC-Chess/CMakeLists.txt b/FC-Chess/FC-Chess/CMakeLists.txt deleted file mode 100644 index a6486b3..0000000 --- a/FC-Chess/FC-Chess/CMakeLists.txt +++ /dev/null @@ -1,13 +0,0 @@ -# CMakeList.txt : CMake project for FC-Chess, include source and define -# project specific logic here. -# -cmake_minimum_required (VERSION 3.8) - -# Add source to this project's executable. -add_executable (FC-Chess "main.cpp" "fc-chess.cpp" "graphics.cpp") - -if (CMAKE_VERSION VERSION_GREATER 3.12) - set_property(TARGET FC-Chess PROPERTY CXX_STANDARD 20) -endif() - -# TODO: Add tests and install targets if needed. diff --git a/FC-Chess/FC-Chess/graphics.cpp b/FC-Chess/graphics.cpp similarity index 100% rename from FC-Chess/FC-Chess/graphics.cpp rename to FC-Chess/graphics.cpp diff --git a/FC-Chess/FC-Chess/graphics.h b/FC-Chess/graphics.h similarity index 100% rename from FC-Chess/FC-Chess/graphics.h rename to FC-Chess/graphics.h diff --git a/FC-Chess/FC-Chess/main.cpp b/FC-Chess/main.cpp similarity index 100% rename from FC-Chess/FC-Chess/main.cpp rename to FC-Chess/main.cpp diff --git a/FC-Chess/to do.md b/to do.md similarity index 100% rename from FC-Chess/to do.md rename to to do.md