jag

snake_c

public

Small snake game in C

Star0
Watch0
294521773ddf42780958c5aed628d39eef7d1a0a
2
ssh://git@git.jaglekon.de:30/jag/snake_c.git
CMakeLists.txt27 lines504 B
1
cmake_minimum_required(VERSION 3.20)
2
3
project(snake 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://codeberg.org/Jaglekon/jag_parse.git
12
  GIT_TAG v1.1.0
13
)
14
15
FetchContent_MakeAvailable(jag_parse)
16
17
add_executable(snake
18
  source/main.c
19
  source/logic.c
20
  source/draw.c
21
)
22
23
target_link_libraries(snake PRIVATE jag_parse)
24
25
target_compile_options(snake PRIVATE
26
  $<$<CONFIG:Debug>:-Wall -Wextra -Wpedantic>
27
)