refac: clean base

This commit is contained in:
Floriansylvain
2025-12-28 02:50:59 +01:00
parent 199b77df58
commit 683096351f
10 changed files with 228 additions and 144 deletions
+6 -1
View File
@@ -5,6 +5,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(ASSETS_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/assets")
set(ASSETS_DEST_DIR "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/assets")
file(GLOB_RECURSE SOURCES "src/*.cpp")
include(FetchContent)
FetchContent_Declare(SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
@@ -14,7 +16,10 @@ FetchContent_Declare(SFML
SYSTEM)
FetchContent_MakeAvailable(SFML)
add_executable(main src/main.cpp)
add_executable(main ${SOURCES})
target_include_directories(main PRIVATE include)
target_compile_features(main PRIVATE cxx_std_17)
target_link_libraries(main PRIVATE SFML::Graphics)