jag

snake_c

public

Small snake game in C

Star0
Watch0
7a93b7b4eede483993fcda0fc519ae59773fa6e9
2
ssh://git@git.jaglekon.de:30/jag/snake_c.git
CMakeLists.txt38 lines707 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_Declare(
16
  jag_write
17
  GIT_REPOSITORY https://codeberg.org/Jaglekon/jag_write.git
18
  GIT_TAG v1.0.1
19
)
20
21
FetchContent_MakeAvailable(jag_parse jag_write)
22
23
add_executable(snake
24
  source/main.c
25
  source/logic.c
26
  source/draw.c
27
  source/parameters.c
28
  source/settings_file/settings_file.c
29
)
30
31
target_link_libraries(snake PRIVATE 
32
  jag_parse 
33
  jag_write
34
)
35
36
target_compile_options(snake PRIVATE
37
  $<$<CONFIG:Debug>:-Wall -Wextra -Wpedantic>
38
)