forked from eBay/Jungle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (31 loc) · 1.36 KB
/
CMakeLists.txt
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
set(EXAMPLES_DIR ${PROJECT_SOURCE_DIR}/examples)
set(JUNGLE_TEST_DEPS
static_lib
${LIBSIMPLELOGGER}
${FDB_LIB_DIR}/libforestdb.a
${LIBSNAPPY}
${LIBDL})
set(GET_SET_DEL ${EXAMPLES_DIR}/example_get_set_del.cc)
add_executable(get_set_del ${GET_SET_DEL})
target_link_libraries(get_set_del ${JUNGLE_TEST_DEPS})
add_dependencies(get_set_del static_lib)
set(ITERATOR ${EXAMPLES_DIR}/example_iterator.cc)
add_executable(iterator ${ITERATOR})
target_link_libraries(iterator ${JUNGLE_TEST_DEPS})
add_dependencies(iterator static_lib)
set(ITERATOR_ADV ${EXAMPLES_DIR}/example_iterator_adv.cc)
add_executable(iterator_adv ${ITERATOR_ADV})
target_link_libraries(iterator_adv ${JUNGLE_TEST_DEPS})
add_dependencies(iterator_adv static_lib)
set(SNAPSHOT_CHK ${EXAMPLES_DIR}/example_snapshot_checkpoint.cc)
add_executable(snapshot_checkpoint ${SNAPSHOT_CHK})
target_link_libraries(snapshot_checkpoint ${JUNGLE_TEST_DEPS})
add_dependencies(snapshot_checkpoint static_lib)
set(SNAPSHOT_INST ${EXAMPLES_DIR}/example_snapshot_instant.cc)
add_executable(snapshot_instant ${SNAPSHOT_INST})
target_link_libraries(snapshot_instant ${JUNGLE_TEST_DEPS})
add_dependencies(snapshot_instant static_lib)
set(LOG_STORE ${EXAMPLES_DIR}/example_log_store_mode.cc)
add_executable(log_store ${LOG_STORE})
target_link_libraries(log_store ${JUNGLE_TEST_DEPS})
add_dependencies(log_store static_lib)