1 include_directories(../include)
3 add_library(common STATIC common.c)
4 set(ECOMMON_LIBRARIES common elliptics_client)
6 set(DNET_IOSERV_SRCS ioserv.c config.c file_backend.c backends.c eblob_backend.c)
7 set(DNET_IOSERV_LIBRARIES ${ECOMMON_LIBRARIES} elliptics elliptics_cocaine)
10 list(APPEND DNET_IOSERV_SRCS smack_backend.c)
11 list(APPEND DNET_IOSERV_LIBRARIES ${SMACK_LIBRARIES})
14 if(HAVE_LEVELDB_SUPPORT)
15 list(APPEND DNET_IOSERV_SRCS leveldb_backend.c)
16 list(APPEND DNET_IOSERV_LIBRARIES ${LEVELDB_LIBRARIES})
19 add_executable(dnet_ioserv ${DNET_IOSERV_SRCS})
20 target_link_libraries(dnet_ioserv ${DNET_IOSERV_LIBRARIES})
22 add_executable(dnet_check check.c)
23 target_link_libraries(dnet_check ${ECOMMON_LIBRARIES})
25 add_executable(dnet_find find.cpp)
26 target_link_libraries(dnet_find ${ECOMMON_LIBRARIES} elliptics_cpp)
28 add_executable(dnet_meta meta.c)
29 target_link_libraries(dnet_meta ${ECOMMON_LIBRARIES})
31 add_executable(dnet_ioclient ioclient.c)
32 target_link_libraries(dnet_ioclient ${ECOMMON_LIBRARIES})
34 add_executable(dnet_hparser hparser.c)
35 target_link_libraries(dnet_hparser ${ECOMMON_LIBRARIES})
37 add_executable(dnet_stat stat.c)
38 target_link_libraries(dnet_stat ${ECOMMON_LIBRARIES})
40 add_executable(dnet_notify notify.c)
41 target_link_libraries(dnet_notify ${ECOMMON_LIBRARIES})
43 add_executable(dnet_meta_update_groups meta_update_groups.c)
44 target_link_libraries(dnet_meta_update_groups ${ECOMMON_LIBRARIES})
46 add_executable(dnet_ids ids.c)
47 target_link_libraries(dnet_ids "")
58 dnet_meta_update_groups
60 RUNTIME DESTINATION bin COMPONENT runtime)