Merge branch 'master' of tsn:public_html/git/elliptics
[elliptics.git] / example / CMakeLists.txt
blob01175047de986661878a20bfff30d7f6d29387a5
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 ${SMACK_LIBRARIES})
8 if(HAVE_SMACK_SUPPORT)
9     list(APPEND DNET_IOSERV_SRCS smack_backend.c)
10 endif()
11 add_executable(dnet_ioserv ${DNET_IOSERV_SRCS})
12 target_link_libraries(dnet_ioserv ${DNET_IOSERV_LIBRARIES})
14 add_executable(dnet_check check.c)
15 target_link_libraries(dnet_check ${ECOMMON_LIBRARIES})
17 add_executable(dnet_find find.cpp)
18 target_link_libraries(dnet_find ${ECOMMON_LIBRARIES} elliptics_cpp)
20 add_executable(dnet_meta meta.c)
21 target_link_libraries(dnet_meta ${ECOMMON_LIBRARIES})
23 add_executable(dnet_ioclient ioclient.c)
24 target_link_libraries(dnet_ioclient ${ECOMMON_LIBRARIES})
26 add_executable(dnet_hparser hparser.c)
27 target_link_libraries(dnet_hparser ${ECOMMON_LIBRARIES})
29 add_executable(dnet_stat stat.c)
30 target_link_libraries(dnet_stat ${ECOMMON_LIBRARIES})
32 add_executable(dnet_notify notify.c)
33 target_link_libraries(dnet_notify ${ECOMMON_LIBRARIES})
35 add_executable(dnet_meta_update_groups meta_update_groups.c)
36 target_link_libraries(dnet_meta_update_groups ${ECOMMON_LIBRARIES})
38 add_executable(dnet_ids ids.c)
39 target_link_libraries(dnet_ids "")
41 install(TARGETS 
42         dnet_ioserv
43         dnet_check
44         dnet_find
45         dnet_meta
46         dnet_ioclient
47         dnet_hparser
48         dnet_stat
49         dnet_notify
50         dnet_meta_update_groups
51         dnet_ids
52     RUNTIME DESTINATION bin COMPONENT runtime)