-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
96 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
*.txt | ||
*.dat | ||
*.eps | ||
*.data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
project(ccbench_si | ||
VERSION 0.0.1 | ||
DESCRIPTION "si of ccbench" | ||
LANGUAGES CXX) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake") | ||
|
||
option(ENABLE_SANITIZER "enable sanitizer on debug build" ON) | ||
option(ENABLE_UB_SANITIZER "enable undefined behavior sanitizer on debug build" OFF) | ||
option(ENABLE_COVERAGE "enable coverage on debug build" OFF) | ||
|
||
find_package(Doxygen) | ||
find_package(Threads REQUIRED) | ||
find_package(gflags REQUIRED) | ||
find_package(glog REQUIRED) | ||
find_package(Boost | ||
COMPONENTS filesystem) | ||
|
||
include(GNUInstallDirs) | ||
include(CMakePackageConfigHelpers) | ||
include(CompileOptions) | ||
|
||
file(GLOB SI_SOURCES | ||
"../common/result.cc" | ||
"../common/util.cc" | ||
"si.cc" | ||
"garbage_collection.cc" | ||
"result.cc" | ||
"transaction.cc" | ||
"util.cc" | ||
) | ||
|
||
add_executable(si.exe ${SI_SOURCES}) | ||
|
||
target_link_libraries(si.exe | ||
Boost::filesystem | ||
gflags::gflags | ||
${PROJECT_SOURCE_DIR}/../third_party/mimalloc/out/release/libmimalloc.a | ||
${PROJECT_SOURCE_DIR}/../third_party/masstree/libkohler_masstree_json.a | ||
Threads::Threads | ||
) | ||
|
||
if (DEFINED ADD_ANALYSIS) | ||
add_definitions(-DADD_ANALYSIS=${ADD_ANALYSIS}) | ||
else () | ||
add_definitions(-DADD_ANALYSIS=0) | ||
endif () | ||
|
||
if (DEFINED BACK_OFF) | ||
add_definitions(-DBACK_OFF=${BACK_OFF}) | ||
else () | ||
add_definitions(-DBACK_OFF=0) | ||
endif () | ||
|
||
add_definitions(-DCCTR_ON) | ||
|
||
if (DEFINED KEY_SIZE) | ||
add_definitions(-DKEY_SIZE=${KEY_SIZE}) | ||
else () | ||
add_definitions(-DKEY_SIZE=8) | ||
endif () | ||
|
||
if (DEFINED MASSTREE_USE) | ||
add_definitions(-DMASSTREE_USE=${MASSTREE_USE}) | ||
else () | ||
add_definitions(-DMASSTREE_USE=1) | ||
endif () | ||
|
||
if (DEFINED VAL_SIZE) | ||
add_definitions(-DVAL_SIZE=${VAL_SIZE}) | ||
else () | ||
add_definitions(-DVAL_SIZE=4) | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters