This commit is contained in:
Sebastian Mihai Pantoc
2026-05-12 11:15:47 +02:00
commit 8d93de4be7
27 changed files with 773 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 4.1.1)
project(chippotto)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
include(FetchContent)
FetchContent_Declare(
SDL3
GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
GIT_TAG 0f8d062e1084d269d6437b4d1173148e14a7da74# release 3.4
)
FetchContent_MakeAvailable(SDL3)
file(GLOB src CONFIGURE_DEPENDS src/*.cpp)
add_executable(${PROJECT_NAME} ${src})
file(COPY src/assets/audio.wav DESTINATION assets)
target_link_libraries(${PROJECT_NAME} SDL3::SDL3)