32 lines
950 B
CMake
Executable File
32 lines
950 B
CMake
Executable File
cmake_minimum_required(VERSION 3.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)
|
|
|
|
add_library(PorygonLang ${SRC_FILES})
|
|
add_executable(PorygonLangTests
|
|
${SRC_FILES}
|
|
src/Parser/LexerTests.cpp
|
|
integration_tests/integration_tests.cpp src/Parser/ParserTests.cpp)
|
|
|
|
target_compile_definitions(PorygonLangTests PRIVATE TESTS_BUILD)
|
|
|
|
|
|
include(CTest)
|