2019-05-18 18:35:51 +00:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
project(PorygonLang)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
2019-05-19 12:42:45 +00:00
|
|
|
include_directories(extern)
|
2019-05-18 18:35:51 +00:00
|
|
|
|
2019-05-21 11:05:17 +00:00
|
|
|
set(SRC_FILES
|
|
|
|
src/Parser/Lexer.cpp
|
|
|
|
src/Parser/Lexer.hpp
|
|
|
|
src/Parser/TokenKind.hpp
|
|
|
|
src/Parser/Token.hpp
|
|
|
|
src/Parser/Parser.cpp
|
|
|
|
src/Parser/Parser.hpp
|
|
|
|
src/Parser/ParsedStatements/ParsedStatement.hpp
|
|
|
|
src/Parser/ParsedExpressions/ParsedExpression.hpp
|
|
|
|
src/Parser/BinaryOperatorKind.hpp
|
|
|
|
src/Script.cpp
|
|
|
|
src/Script.hpp
|
2019-05-21 11:56:08 +00:00
|
|
|
src/Diagnostics/Diagnostics.hpp
|
|
|
|
src/Diagnostics/DiagnosticSeverity.hpp src/Diagnostics/DiagnosticCode.hpp src/Diagnostics/Diagnostic.hpp)
|
2019-05-21 11:05:17 +00:00
|
|
|
|
|
|
|
add_library(PorygonLang ${SRC_FILES})
|
|
|
|
add_executable(PorygonLangTests
|
|
|
|
${SRC_FILES}
|
|
|
|
src/Parser/LexerTests.cpp
|
2019-05-21 15:16:53 +00:00
|
|
|
integration_tests/integration_tests.cpp src/Parser/ParserTests.cpp)
|
2019-05-18 18:35:51 +00:00
|
|
|
|
|
|
|
target_compile_definitions(PorygonLangTests PRIVATE TESTS_BUILD)
|
|
|
|
|
2019-05-19 12:26:21 +00:00
|
|
|
|
2019-05-18 18:35:51 +00:00
|
|
|
include(CTest)
|