-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ZacharyLiu-CS/extend
Update compilation process of YCSB-C
- Loading branch information
Showing
16 changed files
with
51 additions
and
2,174 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,7 +1,6 @@ | ||
# clion | ||
.idea | ||
cmake* | ||
CMake* | ||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
|
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,51 @@ | ||
#1. specify the version of cmake | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
#2. define the name of project | ||
project(ycsbc) | ||
|
||
#3. specify c++ compiler version | ||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
set(CMAKE_CXX_FLAGS "-std=c++11 -g -Wall -O2 -pthread ") | ||
|
||
#4. head file path | ||
include_directories( | ||
${PROJECT_SOURCE_DIR} | ||
${PROJECT_SOURCE_DIR}/db | ||
${PROJECT_SOURCE_DIR}/core | ||
${PROJECT_SOURCE_DIR}/../../include | ||
${PROJECT_SOURCE_DIR}/../../dep/rocksdb/include | ||
${PROJECT_SOURCE_DIR}/../../dep/rocksdb | ||
) | ||
|
||
#5. third path link path | ||
link_directories( | ||
${PROJECT_SOURCE_DIR}/../../dep/rocksdb | ||
${PROJECT_SOURCE_DIR}/../../build | ||
) | ||
|
||
#6. source code file path | ||
file(GLOB MAIN_FILE | ||
${PROJECT_SOURCE_DIR}/ycsbc.cc | ||
) | ||
file(GLOB SOURCE_FILE | ||
${PROJECT_SOURCE_DIR}/core/*.cc | ||
${PROJECT_SOURCE_DIR}/db/*.cc | ||
) | ||
|
||
#7. define the executable | ||
add_executable(${PROJECT_NAME} ${MAIN_FILE} ${SOURCE_FILE}) | ||
target_link_libraries(${PROJECT_NAME} | ||
pthread | ||
pebblesdb | ||
rocksdb | ||
diffkv | ||
snappy | ||
tbb | ||
zstd | ||
lz4 | ||
bz2 | ||
z | ||
dl | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.