Repository navigation
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·131 lines (110 loc) · 3.39 KB
/
Copy pathCMakeLists.txt
File metadata and controls
executable file
·131 lines (110 loc) · 3.39 KB
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
121
122
123
124
125
126
127
128
129
130
131
cmake_minimum_required(VERSION 2.8)
project(INDEX_PARTITIONING)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif ()
if (UNIX)
# C++11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -fopenmp -mavx -lrt -laio -Wall")
# For hardware popcount
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.2")
# Extensive warnings
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-missing-braces")
# Silence a warning bug in Boost
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-local-typedefs")
endif ()
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wconversion")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb") # Add debug info anyway
endif()
find_package(Boost 1.42.0 COMPONENTS iostreams unit_test_framework REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
#link_directories(${INDEX_PARTITIONING_SOURCE_DIR}/PM_part)
# add the root directory to include path to make includes absolute
include_directories(${INDEX_PARTITIONING_SOURCE_DIR})
add_subdirectory(succinct EXCLUDE_FROM_ALL)
add_subdirectory(FastPFor EXCLUDE_FROM_ALL)
add_subdirectory(streamvbyte EXCLUDE_FROM_ALL)
# bypass integer_encoding_library build system, only take what we need
include_directories(${INDEX_PARTITIONING_SOURCE_DIR}/integer_encoding_library/include)
add_library(block_codecs
block_codecs.cpp
FastPFor/src/simdunalignedbitpacking.cpp
integer_encoding_library/src/compress/table/decUnary.cpp
integer_encoding_library/src/compress/table/decGamma.cpp
integer_encoding_library/src/compress/table/decDelta.cpp
integer_encoding_library/src/io/BitsReader.cpp
integer_encoding_library/src/io/BitsWriter.cpp
)
#add_executable(create_freq_index create_freq_index.cpp)
#target_link_libraries(create_freq_index
# ${Boost_LIBRARIES}
# FastPFor_lib
# block_codecs
# streamvbyte_static
# streamvbyte
# )
#add_executable(create_wand_data create_wand_data.cpp)
#target_link_libraries(create_wand_data
# ${Boost_LIBRARIES}
# )
#add_executable(queries queries.cpp)
#target_link_libraries(queries
# ${Boost_LIBRARIES}
# FastPFor_lib
# block_codecs
# )
add_executable(Query_DRAMbase Query_DRAMbase.cpp)
target_link_libraries(Query_DRAMbase
${Boost_LIBRARIES}
FastPFor_lib
block_codecs
streamvbyte_static
streamvbyte
)
add_executable(Query_Nativebase Query_Nativebase.cpp)
target_link_libraries(Query_Nativebase
${Boost_LIBRARIES}
FastPFor_lib
block_codecs
streamvbyte_static
streamvbyte
)
add_executable(Query_Pipebase Query_Pipebase.cpp)
target_link_libraries(Query_Pipebase
${Boost_LIBRARIES}
FastPFor_lib
block_codecs
streamvbyte_static
streamvbyte
)
add_executable(Query_PipeCache Query_PipeCache.cpp)
target_link_libraries(Query_PipeCache
${Boost_LIBRARIES}
FastPFor_lib
block_codecs
streamvbyte_static
streamvbyte
)
add_executable(Query_PipeCachePref Query_PipeCachePref.cpp)
target_link_libraries(Query_PipeCachePref
${Boost_LIBRARIES}
FastPFor_lib
block_codecs
streamvbyte_static
streamvbyte
)
add_executable(Greedy_Reorder Greedy_Reorder.cpp)
target_link_libraries(Greedy_Reorder
${Boost_LIBRARIES}
FastPFor_lib
block_codecs
streamvbyte_static
streamvbyte
)
#enable_testing()
#add_subdirectory(test)