Small block game in C
| 1 | cmake_minimum_required(VERSION 3.20) |
| 2 | |
| 3 | project(tetoris C) |
| 4 | |
| 5 | include(FetchContent) |
| 6 | |
| 7 | FetchContent_Declare( |
| 8 | jag_parser |
| 9 | GIT_REPOSITORY https://codeberg.org/Jaglekon/jag_parse.git |
| 10 | GIT_TAG v1.0.0 |
| 11 | ) |
| 12 | |
| 13 | FetchContent_MakeAvailable(parser) |
| 14 | |
| 15 | add_executable(tetoris |
| 16 | source/main.c |
| 17 | source/draw.c |
| 18 | source/logic.c |
| 19 | ) |
| 20 | |
| 21 | target_link_libraries(tetoris PRIVATE parser) |
| 22 | |
| 23 | target_compile_options(tetoris PRIVATE |
| 24 | $<$<CONFIG:Debug>:-Wall -Wextra -Wpedantic> |
| 25 | ) |
| 26 |