Small block game in C
| 1 | cmake_minimum_required(VERSION 3.20) |
| 2 | |
| 3 | project(tetoris C) |
| 4 | |
| 5 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) |
| 6 | |
| 7 | include(FetchContent) |
| 8 | |
| 9 | FetchContent_Declare( |
| 10 | jag_parse |
| 11 | GIT_REPOSITORY https://git.jaglekon.de/jag/jagParse_c |
| 12 | GIT_TAG v1.1.1 |
| 13 | ) |
| 14 | |
| 15 | FetchContent_MakeAvailable(jag_parse) |
| 16 | |
| 17 | add_executable(tetoris |
| 18 | source/main.c |
| 19 | source/draw.c |
| 20 | source/logic.c |
| 21 | ) |
| 22 | |
| 23 | target_link_libraries(tetoris PRIVATE jag_parse) |
| 24 | |
| 25 | target_compile_options(tetoris PRIVATE |
| 26 | $<$<CONFIG:Debug>:-Wall -Wextra -Wpedantic> |
| 27 | ) |
| 28 |