CMakeLists.txt 632 字节
Newer Older
Q
Qiao Longfei 已提交
1 2 3 4 5 6
## add storage_proto as target
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS storage.proto)
add_library(storage_proto ${PROTO_SRCS})
add_dependencies(storage_proto protobuf)

## add storage as target
S
superjom 已提交
7 8 9
add_library(entry entry.cc entry.h ${PROTO_SRCS} ${PROTO_HDRS})
add_library(tablet tablet.cc tablet.h ${PROTO_SRCS} ${PROTO_HDRS})
add_library(record record.cc record.h ${PROTO_SRCS} ${PROTO_HDRS})
S
superjom 已提交
10
add_library(storage storage.cc storage.h ${PROTO_SRCS} ${PROTO_HDRS})
S
superjom 已提交
11

S
superjom 已提交
12
add_dependencies(entry storage_proto im)
S
superjom 已提交
13
add_dependencies(record storage_proto entry)
S
superjom 已提交
14
add_dependencies(tablet storage_proto)
Q
Qiao Longfei 已提交
15
add_dependencies(storage storage_proto)