feat: basic game structure w/ Ball physics & input handling

This commit is contained in:
Florian Sylvain
2025-05-10 23:08:57 +02:00
parent 5fcac0f157
commit 85551bf8ed
10 changed files with 253 additions and 23 deletions
+7 -4
View File
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.28)
project(CMakeSFMLProject LANGUAGES CXX)
project(SFMLplayground LANGUAGES CXX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
@@ -12,6 +12,9 @@ FetchContent_Declare(SFML
SYSTEM)
FetchContent_MakeAvailable(SFML)
add_executable(main src/main.cpp)
target_compile_features(main PRIVATE cxx_std_17)
target_link_libraries(main PRIVATE SFML::Graphics)
file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS src/*.cpp)
file(GLOB_RECURSE HEADERS CONFIGURE_DEPENDS src/*.hpp)
add_executable(SFMLplayground ${SOURCES} ${HEADERS})
target_compile_features(SFMLplayground PRIVATE cxx_std_17)
target_link_libraries(SFMLplayground PRIVATE SFML::Graphics)