forked from basicthinker/YCSB-C
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
53 lines (45 loc) · 1.33 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
cmake_minimum_required(VERSION 3.14)
project(ycsb)
include(FindThreads)
find_package(PkgConfig REQUIRED)
pkg_check_modules(TBB REQUIRED tbb)
add_subdirectory(redis)
#add_definitions(-DGENERATE_PREFIX_KEY)
add_executable(ycsb "")
target_sources(ycsb PUBLIC
"core/client.h"
"core/const_generator.h"
"core/core_workload.cc"
"core/core_workload.h"
"core/counter_generator.h"
"core/db.h"
"core/discrete_generator.h"
"core/generator.h"
"core/properties.h"
"core/scrambled_zipfian_generator.h"
"core/skewed_latest_generator.h"
"core/timer.h"
"core/uniform_generator.h"
"core/utils.h"
"core/zipfian_generator.h"
"db/basic_db.h"
"db/db_factory.cc"
"db/db_factory.h"
"db/hashtable_db.cc"
"db/hashtable_db.h"
"db/lock_stl_db.h"
"db/redis_db.cc"
"db/redis_db.h"
"db/tbb_rand_db.h"
"db/tbb_scan_db.h"
"lib/lock_stl_hashtable.h"
"lib/mem_alloc.h"
"lib/stl_hashtable.h"
"lib/string.h"
"lib/string_hashtable.h"
"lib/tbb_scan_hashtable.h"
"lib/tbb_rand_hashtable.h"
"ycsbc.cc"
)
target_include_directories(ycsb PUBLIC .)
target_link_libraries(ycsb ${CMAKE_THREAD_LIBS_INIT} ${TBB_LIBRARIES} hiredis)