-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
120 lines (100 loc) · 3.73 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
cmake_minimum_required(VERSION 3.14)
project(KATCH)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_VERBOSE_MAKEFILE ON)
#set(CMAKE_CXX_FLAGS "-DUSE_PARALLELISM")
set(CMAKE_CXX_FLAGS_DEBUG "-g -ggdb -O0 -fno-omit-frame-pointer")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/../bin)
if(UNIX AND NOT APPLE)
message(STATUS ">>> Linux")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include -fopenmp")
endif ()
if(APPLE)
message(STATUS ">>> Apple")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xpreprocessor -fopenmp")
include_directories("/usr/local/Cellar/libomp/10.0.0/include")
include_directories("/usr/local/Cellar/google-sparsehash/2.0.4/include")
include_directories("/usr/local/Cellar/boost/1.75.0_1/include")
endif()
include_directories(./)
include_directories(osm_analyzer)
set(SRC
datastr/base/double.h
datastr/base/interval.h
datastr/base/point.h
datastr/base/pwl_ttf.h
datastr/base/ttf_wrapper.h
datastr/base/bit_vector.cpp
datastr/base/bit_vector.h
datastr/base/emulate_gcc_builtin.h
datastr/base/spline.h
datastr/graph/basic.h
datastr/graph/dynamic_graph.h
datastr/graph/order_edge_data.h
datastr/graph/search_graph.h
datastr/graph/dynamic_search_graph.h
datastr/graph/static_search_graph.h
datastr/graph/forward_search_graph.h
datastr/graph/static_forward_search_graph.h
datastr/cpd/cpd.h
datastr/cpd/cpd.cpp
datastr/cpd/range.h
datastr/cpd/binary_search.h
datastr/cpd/bw_cpd.cpp
datastr/cpd/bw_cpd.h
datastr/cpd/rev_cpd.h
datastr/cpd/rev_bw_cpd.h
datastr/cpd/rev_bw_cpd.cpp
io/binary.h
io/btch_format.h
io/demands_format.h
io/edge_info.h
io/tpgr_format.h
io/vec_io.h
io/tpgr_format_noise.h
prepro/edge_description.h
prepro/ordering.h
prepro/witness_search.h
query/BTCH.h
query/BSTCH.h
query/FTCH_TCPD.h
query/STCH_TCPD.h
query/FTCH_L.h
query/BMTCH.h
query/BMTCH_query.h
query/FTCH_CPD.h
query/FMTCH_TCPD.h
query/FMTCH_TCPD_query.h
query/FTCH_RTPD.h
query/BTCH_L.h
cpd_prepro/tch_downward_dijkstra_query.h
cpd_prepro/st_dijkstra_query.h
cpd_prepro/tch_dijkstra_query.h
cpd_prepro/tch_updown_query.h
cpd_prepro/reverse_tch_updown_query.h
cpd_prepro/tch_upward_dijkstra_query.h
util/id_queue.h
util/misc.h
util/my_timer.h
util/my_timer.cpp
context/search_context.h
context/bi_search_context.h
)
add_executable(run_ordering ${SRC} experiments/run_ordering.cpp)
add_executable(run_experiments ${SRC} experiments/run_experiments.cpp)
add_executable(generate_queries ${SRC} experiments/generate_queries.cpp)
add_executable(split_data ${SRC} experiments/split_data.cpp)
add_executable(construct_fw_tch_cpd ${SRC} experiments/construct_fw_tch_cpd.cpp)
add_executable(construct_bw_tch_cpd ${SRC} experiments/construct_bw_tch_cpd.cpp)
add_executable(construct_stch_mtch ${SRC} experiments/construct_stch_mtch.cpp)
add_executable(generate_landmarks ${SRC} experiments/generate_landmarks.cpp )
add_executable(construct_reverse_fw_tch_cpd ${SRC} experiments/construct_reverse_fw_tch_cpd.cpp)
find_library(omp_lib omp "/usr/local/opt")
if (omp_lib)
target_link_libraries(run_ordering ${omp_lib})
target_link_libraries(construct_stch_mtch ${omp_lib})
target_link_libraries(construct_fw_tch_cpd ${omp_lib})
target_link_libraries(construct_bw_tch_cpd ${omp_lib})
target_link_libraries(construct_reverse_fw_tch_cpd ${omp_lib})
endif()