-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (38 loc) · 1.57 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
cmake_minimum_required(VERSION 3.7.2 FATAL_ERROR)
project(time_series_indexing)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "bin/")
set(CMAKE_BUILD_TYPE Release)
include_directories(${CMAKE_HOME_DIRECTORY}/src)
# SDSL flags
set(GCC_SDSL_FLAGS "-lsdsl -ldivsufsort -ldivsufsort64")
add_definitions(${GCC_SDSL_FLAGS})
# Google Test flags
set(GCC_GTEST_FLAGS "-lgtest")
add_definitions(${GCC_GTEST_FLAGS})
# Set of indexes
set(indexes src/Baseline.hpp src/Index1.hpp)
# Build index
SET(exec build_index)
ADD_EXECUTABLE(${exec} ${indexes} src/build_index.cpp)
TARGET_LINK_LIBRARIES(${exec} sdsl divsufsort divsufsort64)
SET_PROPERTY(TARGET ${exec} PROPERTY COMPILE_DEFINITIONS)
# Run queries
SET(exec run_queries)
ADD_EXECUTABLE(${exec} ${indexes} src/run_queries.cpp)
TARGET_LINK_LIBRARIES(${exec} sdsl divsufsort divsufsort64)
SET_PROPERTY(TARGET ${exec} PROPERTY COMPILE_DEFINITIONS)
# Build query sets
SET(exec build_query_sets)
ADD_EXECUTABLE(${exec} ${indexes} src/build_query_sets.cpp)
TARGET_LINK_LIBRARIES(${exec} sdsl divsufsort divsufsort64)
SET_PROPERTY(TARGET ${exec} PROPERTY COMPILE_DEFINITIONS)
# Uint test for baseline
SET(exec test_baseline)
ADD_EXECUTABLE(${exec} ${indexes} test/test_common.hpp test/test_baseline.cpp)
TARGET_LINK_LIBRARIES(${exec} gtest sdsl divsufsort divsufsort64)
SET_PROPERTY(TARGET ${exec} PROPERTY COMPILE_DEFINITIONS)
# Unit test for Index1
SET(exec test_index1)
ADD_EXECUTABLE(${exec} ${indexes} test/test_common.hpp test/test_index1.cpp)
TARGET_LINK_LIBRARIES(${exec} gtest sdsl divsufsort divsufsort64)
SET_PROPERTY(TARGET ${exec} PROPERTY COMPILE_DEFINITIONS)