Elliptics version update: 2.19.2.8
[elliptics.git] / example / CMakeLists.txt
blob1dd876a87b8eebfd8871b370c4f03879eeb87b3a
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)
9 if(HAVE_SMACK_SUPPORT)
10     list(APPEND DNET_IOSERV_SRCS smack_backend.c)
11     list(APPEND DNET_IOSERV_LIBRARIES ${SMACK_LIBRARIES})
12 endif()
14 if(HAVE_LEVELDB_SUPPORT)
15     list(APPEND DNET_IOSERV_SRCS leveldb_backend.c)
16     list(APPEND DNET_IOSERV_LIBRARIES ${LEVELDB_LIBRARIES})
17 endif()
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 "")
49 install(TARGETS 
50         dnet_ioserv
51         dnet_check
52         dnet_find
53         dnet_meta
54         dnet_ioclient
55         dnet_hparser
56         dnet_stat
57         dnet_notify
58         dnet_meta_update_groups
59         dnet_ids
60     RUNTIME DESTINATION bin COMPONENT runtime)