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)
