mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-05 22:48:42 +00:00
35 lines
1.3 KiB
CMake
35 lines
1.3 KiB
CMake
cmake_minimum_required(VERSION 3.10)
|
|
|
|
project(LangInterpreter)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
# find_package(Catch2 2 REQUIRED)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
|
|
|
|
include_directories(include
|
|
tree-sitter/lib/src
|
|
tree-sitter/lib/include)
|
|
|
|
|
|
# add_executable(interpreter_tests tests/tests.cpp)
|
|
# target_link_libraries(tests PRIVATE Catch2::Catch2WithMain)
|
|
|
|
add_executable(lang_interpreter src/main.cpp
|
|
src/types.cpp
|
|
src/values.cpp
|
|
src/utils.cpp
|
|
src/global_info.cpp
|
|
src/typeclass_graph.cpp
|
|
src/visitor.cpp
|
|
src/build_visitor.cpp
|
|
src/print_visitor.cpp
|
|
src/find_symbols_visitor.cpp
|
|
src/link_symbols_visitor.cpp
|
|
src/type_check_visitor.cpp
|
|
src/typed_print_visitor.cpp
|
|
src/execute_visitor.cpp
|
|
lang-parser/src/parser.c
|
|
lang-parser/src/tree_sitter/parser.h
|
|
tree-sitter/lib/src/lib.c)
|