-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakeLists.txt
84 lines (71 loc) · 1.99 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
74
75
76
77
78
79
80
81
82
83
84
cmake_minimum_required (VERSION 3.0)
project (vivaldi)
set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wold-style-cast -Wconversion -Wsign-conversion -O3 -std=c++1y -stdlib=libc++ -lc++abi")
# CMake doesn't search /usr/local/* by default, of course, because that would
# indicate some modicum of common sense and God knows we can't have that
include_directories("src" SYSTEM "/usr/local/include")
link_directories("/usr/local/lib")
add_executable(vivaldi
src/main.cpp
src/gc.cpp
src/lang_utils.cpp
src/symbol.cpp
src/value.cpp
src/vm.cpp
src/builtins/object.cpp
src/builtins/type.cpp
src/builtins/array.cpp
src/builtins/bool.cpp
src/builtins/dictionary.cpp
src/builtins/file.cpp
src/builtins/floating_point.cpp
src/builtins/integer.cpp
src/builtins/nil.cpp
src/builtins/range.cpp
src/builtins/string.cpp
src/builtins/symbol.cpp
src/builtins.cpp
src/tokenizer.cpp
src/validator.cpp
src/parser.cpp
src/run_file.cpp
src/ast/assignment.cpp
src/ast/array.cpp
src/ast/block.cpp
src/ast/cond_statement.cpp
src/ast/dictionary.cpp
src/ast/except.cpp
src/ast/for_loop.cpp
src/ast/function_call.cpp
src/ast/function_definition.cpp
src/ast/literal.cpp
src/ast/logical_and.cpp
src/ast/logical_or.cpp
src/ast/member.cpp
src/ast/member_assignment.cpp
src/ast/object_creation.cpp
src/ast/require.cpp
src/ast/return_statement.cpp
src/ast/try_catch.cpp
src/ast/type_definition.cpp
src/ast/variable.cpp
src/ast/variable_declaration.cpp
src/ast/while_loop.cpp
src/value/array.cpp
src/value/array_iterator.cpp
src/value/boolean.cpp
src/value/builtin_function.cpp
src/value/dictionary.cpp
src/value/file.cpp
src/value/floating_point.cpp
src/value/function.cpp
src/value/integer.cpp
src/value/nil.cpp
src/value/range.cpp
src/value/string.cpp
src/value/string_iterator.cpp
src/value/symbol.cpp
src/vm/call_frame.cpp
src/vm/instruction.cpp)
target_link_libraries(vivaldi boost_system boost_filesystem)