-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
52 lines (46 loc) · 1.44 KB
/
CMakeLists.txt
File metadata and controls
52 lines (46 loc) · 1.44 KB
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
cmake_minimum_required(VERSION 3.10)
project(untitled4__)
include_directories(rocksdb_include
my_code)
set(CMAKE_CXX_STANDARD 14)
add_library(my_lib
my_code/net_connect/ip_location.cpp
my_code/net_connect/ip_location.h
my_code/const_values/const_values.cpp
my_code/const_values/const_values.h
my_code/control_node/control_meta.cpp
my_code/control_node/control_meta.h
my_code/handle_buff/handle_buff.cpp
my_code/handle_buff/handle_buff.h
my_code/db_handle/db_handle.cpp
my_code/db_handle/db_handle.h
my_code/store_node/store_data.cpp
my_code/store_node/store_data.h
my_code/store_node/store_log.cpp
my_code/store_node/store_log.h
my_code/store_node/store_impl.cpp
my_code/store_node/store_impl.h
my_code/net_connect/net_file.cpp
my_code/net_connect/net_file.h
my_code/control_node/control_impl.cpp
my_code/control_node/control_impl.h)
add_executable(control_node
my_code/main_cpp/control_node.cpp)
add_executable(store_node
my_code/main_cpp/store_node.cpp)
target_link_libraries(control_node
my_lib
${CMAKE_SOURCE_DIR}/libs/librocksdb.a
-lpthread
-lsnappy
-ldl
-lz
)
target_link_libraries(store_node
my_lib
${CMAKE_SOURCE_DIR}/libs/librocksdb.a
-lpthread
-lsnappy
-ldl
-lz
)