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