forked from burner/sweet.hpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
102 lines (92 loc) · 1.94 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
cmake_minimum_required(VERSION 2.8.7)
## we have some extra modules here
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
## thats our project
project(sweettest)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
set(sweettest_SOURCES
testrunner.cpp
bitsettest/bitsettest.cpp
rangetest/rangetest.cpp
faptest/faptest.cpp
fectortest/fectortest.cpp
algotest/algotest.cpp
dbctest/dbctest.cpp
#logtest/loggertest.cpp
formattest/formattest.cpp
filesystemtest/filesystemtest.cpp
benchmarks/strcmpsse.cpp
benchmarks/setVsUnordered.cpp
convtest/convtest.cpp
loggertest/loggertest.cpp
fixedtest/fixedtest.cpp
cachetest/cachetest.cpp
comparetest/comparetest.cpp
optiontest/optiontest.cpp
deathtest/death.cpp
base64test/base64test.cpp
stringfunctiontest/stringtest.cpp
unittest/unittest.cpp
benchmarktest/benchmarktest.cpp
ssimdtest/ssimdtest.cpp
typelist.cpp
sjsontest/sjsontest.cpp
bitvectortest/bitvectortest.cpp
bllocatortest/allocatortest.cpp
stringtest/stringcmptest.cpp
int128test/int128test.cpp
decimaltest/decimaltest.cpp
getoptstest/getoptstest.cpp
combinationstest/combitest.cpp
)
set(sweettest_HEADERS
filesystem.hpp
cache.hpp
stringfunctions.hpp
format.hpp
bitvector.hpp
semaphore.hpp
compare.hpp
bitset.hpp
death.hpp
nanoxml.hpp
sweetqlimpl/sqliteimpl.hpp
sweetqlimpl/types.hpp
log.hpp
getopts.hpp
fixed.hpp
trie.hpp
streamhelper.hpp
base64.hpp
sweetql.hpp
decimal.hpp
fector.hpp
sjson.hpp
fap.hpp
parallelalgo.hpp
logger.hpp
allocator.hpp
int128.hpp
benchmark.hpp
options.hpp
unit.hpp
bllocator.hpp
ssimd.hpp
dbc.hpp
conv.hpp
sysinfo.hpp
combinations.hpp
)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -ggdb --std=c++1y -pedantic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/includes
)
add_executable(sweettest
${sweettest_SOURCES}
${sweettest_HEADERS}
)
target_link_libraries(sweettest sqlite3 pthread)