diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a94f508..7bf9869 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -7,11 +7,14 @@ set(CMAKE_C_STANDARD_REQUIRED On) | |||
| 7 | set(CMAKE_C_EXTENSIONS Off) | 7 | set(CMAKE_C_EXTENSIONS Off) |
| 8 | 8 | ||
| 9 | set(SDL_DIR contrib/SDL-3.2.8) | 9 | set(SDL_DIR contrib/SDL-3.2.8) |
| 10 | set(STB_DIR contrib/stb) | ||
| 10 | 11 | ||
| 11 | set(SDL_SHARED OFF) | 12 | set(SDL_SHARED OFF) |
| 12 | set(SDL_STATIC ON) | 13 | set(SDL_STATIC ON) |
| 13 | add_subdirectory(${SDL_DIR}) | 14 | add_subdirectory(${SDL_DIR}) |
| 14 | 15 | ||
| 16 | add_subdirectory(${STB_DIR}) | ||
| 17 | |||
| 15 | add_executable(game | 18 | add_executable(game |
| 16 | src/main.c) | 19 | src/main.c) |
| 17 | 20 | ||
| @@ -23,6 +26,7 @@ target_link_libraries(game | |||
| 23 | SDL3-static | 26 | SDL3-static |
| 24 | filesystem | 27 | filesystem |
| 25 | math | 28 | math |
| 29 | stb | ||
| 26 | swgfx) | 30 | swgfx) |
| 27 | 31 | ||
| 28 | target_compile_options(game PRIVATE -Wall -Wextra) | 32 | target_compile_options(game PRIVATE -Wall -Wextra) |
