Cleans up CMakeLists
This commit is contained in:
parent
ad3e61128c
commit
26f1ed27a3
|
@ -2,11 +2,27 @@ cmake_minimum_required(VERSION 3.13)
|
||||||
project(PorygonLang)
|
project(PorygonLang)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
#add_subdirectory(extern)
|
|
||||||
include_directories(extern)
|
include_directories(extern)
|
||||||
|
|
||||||
add_library(PorygonLang 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)
|
set(SRC_FILES
|
||||||
add_executable(PorygonLangTests src/Parser/Lexer.cpp src/Parser/Lexer.hpp src/Parser/TokenKind.hpp src/Parser/Token.hpp src/Parser/LexerTests.cpp src/Parser/Parser.cpp src/Parser/Parser.hpp src/Parser/ParsedStatements/ParsedStatement.hpp src/Parser/ParsedExpressions/ParsedExpression.hpp src/Parser/BinaryOperatorKind.hpp)
|
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
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(PorygonLang ${SRC_FILES})
|
||||||
|
add_executable(PorygonLangTests
|
||||||
|
${SRC_FILES}
|
||||||
|
src/Parser/LexerTests.cpp
|
||||||
|
)
|
||||||
|
|
||||||
target_compile_definitions(PorygonLangTests PRIVATE TESTS_BUILD)
|
target_compile_definitions(PorygonLangTests PRIVATE TESTS_BUILD)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue