CMakeLists.txt 735 字节
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 10
#add_library(storage storage.cc storage.h ${PROTO_SRCS} ${PROTO_HDRS})
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 已提交
11
add_library(storage storage.cc storage.h ${PROTO_SRCS} ${PROTO_HDRS})
S
superjom 已提交
12 13 14 15

add_dependencies(entry storage_proto)
add_dependencies(tablet storage_proto)
add_dependencies(record storage_proto)
Q
Qiao Longfei 已提交
16
add_dependencies(storage storage_proto)
S
superjom 已提交
17
#add_dependencies(storage storage_proto)