2019-05-18 20:35:51 +02:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
|
project(PorygonLang)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
2019-05-19 14:32:10 +02:00
|
|
|
add_subdirectory(extern/Catch2)
|
2019-05-18 20:35:51 +02:00
|
|
|
|
2019-05-19 14:26:21 +02:00
|
|
|
add_library(PorygonLang src/main.cpp src/main.h++ src/Parser/Lexer.cpp src/Parser/Lexer.hpp src/Parser/TokenKind.hpp src/Parser/Token.hpp)
|
|
|
|
|
add_executable(PorygonLangTests src/main.cpp src/main.h++ src/Parser/Lexer.cpp src/Parser/Lexer.hpp src/Parser/TokenKind.hpp src/Parser/Token.hpp src/Parser/LexerTests.cpp)
|
2019-05-18 20:35:51 +02:00
|
|
|
|
|
|
|
|
target_link_libraries(PorygonLangTests Catch2::Catch2)
|
|
|
|
|
target_compile_definitions(PorygonLangTests PRIVATE TESTS_BUILD)
|
|
|
|
|
|
2019-05-19 14:26:21 +02:00
|
|
|
|
2019-05-18 20:35:51 +02:00
|
|
|
include(CTest)
|