jag

tetoris_c

public

Small block game in C

Star0
Watch0

Commit c50c7bbc5dd5

tarball

Jaglekon <58274093+Jaglekon@users.noreply.github.com>2026-08-26 14:48 UTC

3 files changed+7-4
tetoris cmake fix
Modified file: .gitignore+1 additions
@@ -1,3 +1,4 @@
1+build/
12 tetoris
23 *.o
34 *.d
Modified file: CMakeLists.txt+4 additions−2 deletions
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20)
22
33 project(tetoris C)
44
5+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
6+
57 include(FetchContent)
68
79 FetchContent_Declare(
@@ -10,7 +12,7 @@ FetchContent_Declare(
1012 GIT_TAG v1.0.0
1113 )
1214
13-FetchContent_MakeAvailable(parser)
15+FetchContent_MakeAvailable(jag_parser)
1416
1517 add_executable(tetoris
1618 source/main.c
@@ -18,7 +20,7 @@ add_executable(tetoris
1820 source/logic.c
1921 )
2022
21-target_link_libraries(tetoris PRIVATE parser)
23+target_link_libraries(tetoris PRIVATE jag_parser)
2224
2325 target_compile_options(tetoris PRIVATE
2426 $<$<CONFIG:Debug>:-Wall -Wextra -Wpedantic>
Modified file: Makefile+2 additions−2 deletions
@@ -2,11 +2,11 @@
22
33 all:
44 cmake -B build -DCMAKE_BUILD_TYPE=Release
5- cmake -build build
5+ cmake --build build
66
77 debug:
88 cmake -B build -DCMAKE_BUILD_TYPE=Debug
9- cmake -build build
9+ cmake --build build
1010
1111 clean:
1212 rm -rf build