summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 7878617e0294c9678c62b650ccafa4da9099e014 (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
cmake_minimum_required(VERSION 3.30)

project(game)

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

add_executable(game
  src/main.c)

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

target_link_libraries(game
  SDL3-static
  filesystem
  math
  stb
  swgfx)

target_compile_options(game PRIVATE -Wall -Wextra -Wno-missing-braces)

# Tools.

add_executable(ase
  tools/ase/main.c)

target_include_directories(ase PRIVATE
  include)

target_compile_options(ase PRIVATE -Wall -Wextra)