Reorganized tests
This commit is contained in:
@@ -4,26 +4,13 @@ project(PorygonLang)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
include_directories(extern)
|
||||
|
||||
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
|
||||
src/Diagnostics/Diagnostics.hpp
|
||||
src/Diagnostics/DiagnosticSeverity.hpp src/Diagnostics/DiagnosticCode.hpp src/Diagnostics/Diagnostic.hpp)
|
||||
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp")
|
||||
file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp")
|
||||
|
||||
add_library(PorygonLang ${SRC_FILES})
|
||||
add_executable(PorygonLangTests
|
||||
${SRC_FILES}
|
||||
src/Parser/LexerTests.cpp
|
||||
integration_tests/integration_tests.cpp src/Parser/ParserTests.cpp)
|
||||
${TEST_FILES})
|
||||
|
||||
target_compile_definitions(PorygonLangTests PRIVATE TESTS_BUILD)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user