summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: a94f5086d12afcb4cf13e4f2c185fbecade09e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.30)

project(game)

set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD_REQUIRED On)
set(CMAKE_C_EXTENSIONS Off)

set(SDL_DIR contrib/SDL-3.2.8)

set(SDL_SHARED OFF)
set(SDL_STATIC ON)
add_subdirectory(${SDL_DIR})

add_executable(game
  src/main.c)

target_include_directories(game PRIVATE
  ${SDL_DIR}/include
  include)

target_link_libraries(game
  SDL3-static
  filesystem
  math
  swgfx)

target_compile_options(game PRIVATE -Wall -Wextra)

# Tools.

add_executable(ase
  tools/ase/main.c)

target_include_directories(ase PRIVATE
  include)

target_compile_options(ase PRIVATE -Wall -Wextra)