swissChili | 923bd53 | 2021-12-08 22:48:58 -0800 | [diff] [blame] | 1 | cmake_minimum_required(VERSION 3.15) |
swissChili | 7babd92 | 2021-12-02 22:46:48 -0800 | [diff] [blame] | 2 | project(REFAL) |
| 3 | |
| 4 | set(CMAKE_CXX_STANDARD 14) |
| 5 | set(CMAKE_AUTOMOC ON) |
| 6 | set(CMAKE_AUTORCC ON) |
| 7 | set(CMAKE_AUTOUIC ON) |
swissChili | 923bd53 | 2021-12-08 22:48:58 -0800 | [diff] [blame] | 8 | set(CMAKE_EXPORT_COMPILE_COMMANDS ON) |
swissChili | 7babd92 | 2021-12-02 22:46:48 -0800 | [diff] [blame] | 9 | |
swissChili | 923bd53 | 2021-12-08 22:48:58 -0800 | [diff] [blame] | 10 | find_package(Qt5 COMPONENTS Core REQUIRED) |
swissChili | 7babd92 | 2021-12-02 22:46:48 -0800 | [diff] [blame] | 11 | |
swissChili | 923bd53 | 2021-12-08 22:48:58 -0800 | [diff] [blame] | 12 | add_executable(REFAL main.cpp Token.cpp Token.h Matcher.cpp Matcher.h |
| 13 | VarContext.cpp VarContext.h Parser.cpp Parser.h AstNode.cpp |
| 14 | AstNode.h Evaluator.cpp Evaluator.h Function.cpp Function.h Repl.cpp |
swissChili | 323883d | 2022-02-20 16:35:23 -0800 | [diff] [blame] | 15 | Repl.h PPrint.cpp PPrint.h StdLib.cpp StdLib.h) |
swissChili | 7babd92 | 2021-12-02 22:46:48 -0800 | [diff] [blame] | 16 | |
swissChili | 923bd53 | 2021-12-08 22:48:58 -0800 | [diff] [blame] | 17 | target_link_libraries(REFAL Qt::Core readline) |