Push all code

This commit is contained in:
MaxanRus 2021-12-09 19:33:51 +03:00
parent 347987bb66
commit ba2bf4b404
10 changed files with 1671 additions and 0 deletions

31
CMakeLists.txt Normal file
View file

@ -0,0 +1,31 @@
cmake_minimum_required(VERSION 3.10)
project("OMGL")
# set(CMAKE_CXX_FLAGS "-O3")
# set(CMAKE_CXX_FLAGS "-O0 --coverage -ftest-coverage -fprofile-arcs")
find_package(GTest REQUIRED)
find_package(Threads REQUIRED)
include_directories(
"include"
${GTEST_INCLUDE_DIRS}
)
set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES
src/preprocessor.cpp
src/lexer.cpp
src/syntax_tree.cpp
)
set(TEST_FILES
)
add_executable(OMGL src/main.cpp ${SOURCE_FILES})
# add_executable(Test tests/MainTest.cpp ${TEST_FILES} ${SOURCE_FILES})
# target_link_libraries(Test ${GTEST_LIBRARIES} Threads::Threads)