-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
73 lines (69 loc) · 2.52 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cmake_minimum_required(VERSION 3.22) # Probably works with older versions too, but I haven't tested it
project(WtiiInterpreter)
set(CMAKE_CXX_STANDARD 17)
# Add debug flag to the project if it's in debug mode
if(CMAKE_BUILD_TYPE MATCHES Debug)
add_compile_definitions(DEBUG)
endif()
set(SOURCE_FILES
main.cpp
ParsedScripts/Values/Value.h
ParsedScripts/Values/ArrayValue.h
ParsedScripts/Values/Constant.h
ParsedScripts/Values/RealReference.h
ParsedScripts/Values/MethodCall.h
ParsedScripts/Values/Variable.h
ParsedScripts/Statements/EnterScopeStatement.h
ParsedScripts/Statements/Statement.h
ParsedScripts/Statements/ExitScopeStatement.h
ParsedScripts/Statements/FunctionCallStatement.h
ParsedScripts/Statements/IfStatement.h
ParsedScripts/Statements/LoadLibStatement.h
ParsedScripts/Statements/MethodDefinitiionStatement.h
ParsedScripts/Statements/ReturnStatement.h
ParsedScripts/Statements/ThrowStatement.h
ParsedScripts/Statements/TryCatchStatement.h
ParsedScripts/Statements/VariableInitStatement.h
ParsedScripts/Statements/VariableSetStatement.h
ParsedScripts/Statements/WhileStatement.h
ParsedScripts/ClassDefinition.h
ParsedScripts/ParsedScript.h
ParsedScripts/Values/ClassInstance.h
ParsedScripts/Values/DirectMethod.h
Scope.h
Parser/Parser.cpp
Parser/Parser.h
Interpreter/Interpreter.cpp
Interpreter/Interpreter.h
Builtins/BuiltIns.h
RuntimeException.h
ProgramExitException.h
Utils.cpp
Utils.h
Builtins/BuiltIns.cpp
Builtins/Functions/Standard.cpp
Builtins/Functions/Standard.h
Builtins/Functions/IO.cpp
Builtins/Functions/IO.h
Builtins/Functions/Convert.cpp
Builtins/Functions/Convert.h
Builtins/Functions/WtiiJson.cpp
Builtins/Functions/WtiiJson.h
Builtins/Functions/Files.cpp
Builtins/Functions/Files.h
Libraries/IWtiiLibrary.h
Libraries/WtiiLibraryFactory.cpp
Libraries/WtiiLibraryFactory.h
library.h
library.cpp
Compiler/Compiler.cpp
Compiler/Compiler.h
Testing/UnitTester.cpp
Testing/UnitTester.h
Testing/TestFailedException.h
Testing/TestMethods.h
Testing/Tests/UtilsTest.h
CompilerException.h
)
add_executable(WtiiInterpreter ${SOURCE_FILES})
add_library(wtiiint SHARED ${SOURCE_FILES})