Skip to content

Commit

Permalink
Merge pull request #8 from ZacharyLiu-CS/extend
Browse files Browse the repository at this point in the history
Update compilation process of YCSB-C
  • Loading branch information
ZacharyLiu-CS authored Apr 13, 2023
2 parents 1386a3d + 9df4fcf commit f37ea7c
Show file tree
Hide file tree
Showing 16 changed files with 51 additions and 2,174 deletions.
1 change: 0 additions & 1 deletion bench_tools/YCSB-C/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# clion
.idea
cmake*
CMake*
# Compiled Object files
*.slo
*.lo
Expand Down
51 changes: 51 additions & 0 deletions bench_tools/YCSB-C/CMakeLists.txt
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
)
290 changes: 0 additions & 290 deletions include/pebblesdb/c.h

This file was deleted.

Loading

0 comments on commit f37ea7c

Please sign in to comment.