chore: initial commit

This commit is contained in:
2026-03-21 06:54:10 +08:00
commit 38beed5b74
18 changed files with 636 additions and 0 deletions

30
CMakeLists.txt Normal file
View File

@@ -0,0 +1,30 @@
cmake_minimum_required(VERSION 4.1)
project(viridian C)
set(CMAKE_C_STANDARD 17)
include(FetchContent)
FetchContent_Declare(
SDL
GIT_REPOSITORY https://github.com/libsdl-org/SDL.git
GIT_TAG release-3.4.2
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
FetchContent_MakeAvailable(SDL)
add_executable(viridian src/main.c
src/parser/tokenizer/tokens.h
src/parser/streams/stream.h
src/parser/streams/file_stream.c
src/parser/streams/file_stream.h
src/parser/streams/stream.c
src/parser/tokenizer/parser.c
src/parser/tokenizer/parser.h
src/common/vector.c
src/common/vector.h)
target_link_libraries(viridian PRIVATE SDL3::SDL3)
target_include_directories(viridian PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}/src/common"
)