mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-05 22:48:42 +00:00
27 lines
873 B
CMake
27 lines
873 B
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")
|
|
|
|
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/visitor.cpp
|
|
src/build_visitor.cpp
|
|
src/print_visitor.cpp
|
|
#src/find_symbols_visitor.cpp
|
|
#src/global_info.cpp
|
|
src/parser.c
|
|
include/parser.h
|
|
tree-sitter/lib/src/lib.c)
|