-
Notifications
You must be signed in to change notification settings - Fork 168
/
BuildCypherLib.cmake
79 lines (72 loc) · 3.32 KB
/
BuildCypherLib.cmake
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
cmake_minimum_required(VERSION 3.1)
find_package(PythonInterp 3)
find_package(PythonLibs ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} EXACT REQUIRED)
#antlr4-runtime
find_package(antlr4-runtime REQUIRED)
include_directories( ${ANTLR4_INCLUDE_DIR} )
set(ANTRL4_LIBRARY antlr4-runtime.a)
set(TARGET_LGRAPH_CYPHER_LIB lgraph_cypher_lib)
set(LGRAPH_CYPHER_SRC # find cypher/ -name "*.cpp" | sort
cypher/arithmetic/agg_funcs.cpp
cypher/arithmetic/arithmetic_expression.cpp
cypher/execution_plan/execution_plan.cpp
cypher/execution_plan/ops/op_aggregate.cpp
cypher/execution_plan/ops/op_all_node_scan.cpp
cypher/execution_plan/ops/op_apply.cpp
cypher/execution_plan/ops/op_argument.cpp
cypher/execution_plan/ops/op_cartesian_product.cpp
cypher/execution_plan/ops/op_create.cpp
cypher/execution_plan/ops/op_delete.cpp
cypher/execution_plan/ops/op_distinct.cpp
cypher/execution_plan/ops/op_expand_all.cpp
cypher/execution_plan/ops/op_filter.cpp
cypher/execution_plan/ops/op_node_index_seek.cpp
cypher/execution_plan/ops/op_node_index_seek_dynamic.cpp
cypher/execution_plan/ops/op_immediate_argument.cpp
cypher/execution_plan/ops/op_inquery_call.cpp
cypher/execution_plan/ops/op_limit.cpp
cypher/execution_plan/ops/op_node_by_label_scan.cpp
cypher/execution_plan/ops/op_optional.cpp
cypher/execution_plan/ops/op_produce_results.cpp
cypher/execution_plan/ops/op_project.cpp
cypher/execution_plan/ops/op_relationship_count.cpp
cypher/execution_plan/ops/op_remove.cpp
cypher/execution_plan/ops/op_set.cpp
cypher/execution_plan/ops/op_skip.cpp
cypher/execution_plan/ops/op_sort.cpp
cypher/execution_plan/ops/op_standalone_call.cpp
cypher/execution_plan/ops/op_union.cpp
cypher/execution_plan/ops/op_unwind.cpp
cypher/execution_plan/ops/op_var_len_expand.cpp
cypher/execution_plan/ops/op_var_len_expand_into.cpp
cypher/execution_plan/ops/op_merge.cpp
cypher/execution_plan/ops/op_node_by_id_seek.cpp
cypher/execution_plan/ops/op_traversal.cpp
cypher/execution_plan/scheduler.cpp
cypher/filter/filter.cpp
cypher/filter/iterator.cpp
cypher/graph/graph.cpp
cypher/graph/node.cpp
cypher/graph/relationship.cpp
cypher/grouping/group.cpp
cypher/parser/cypher_base_visitor.cpp
cypher/parser/cypher_error_listener.cpp
cypher/parser/symbol_table.cpp
cypher/parser/generated/LcypherLexer.cpp
cypher/parser/generated/LcypherParser.cpp
cypher/parser/generated/LcypherVisitor.cpp
cypher/procedure/procedure.cpp
cypher/resultset/record.cpp
cypher/monitor/monitor_manager.cpp
cypher/execution_plan/optimization/rewrite/schema_rewrite.cpp
cypher/execution_plan/optimization/rewrite/graph.cpp
)
add_library(${TARGET_LGRAPH_CYPHER_LIB} STATIC
${LGRAPH_CYPHER_SRC}
${PROTO_HEADERS})
set_target_properties(${TARGET_LGRAPH_CYPHER_LIB} PROPERTIES LINKER_LANGUAGE CXX)
target_include_directories(${TARGET_LGRAPH_CYPHER_LIB} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/cypher)
target_link_libraries(${TARGET_LGRAPH_CYPHER_LIB} PUBLIC
${ANTRL4_LIBRARY}
lgraph)