Use special enums for cflags, ioflags and log levels in python bindings
[elliptics.git] / library / CMakeLists.txt
blob727d9e37589733f9eb0d2ce42b3803e00d736e04
1 set(ELLIPTICS_SRCS
2     dnet.c
3     log.c
4     net.c
5     server.c
6     node.c
7     rbtree.c
8     trans.c
9     compat.c
10     notify.c
11     notify_common.c
12     meta.c
13     metadb.c
14     crypto.c
15     check.c
16     check_common.c
17     pool.c
18     crypto/sha512.c
19     locks.c)
21 set(ELLIPTICS_CLIENT_SRCS
22     meta.c
23     notify_common.c
24     check_common.c
25     dnet_common.c
26     log.c
27     net.c
28     node.c
29     rbtree.c
30     trans.c
31     compat.c
32     crypto.c
33     pool.c
34     crypto/sha512.c
35     )
37 include_directories(../include)
38 add_library(elliptics SHARED ${ELLIPTICS_SRCS})
39 set_target_properties(elliptics PROPERTIES
40     VERSION ${ELLIPTICS_VERSION}
41     SOVERSION ${ELLIPTICS_VERSION_ABI}
42     )
43 target_link_libraries(elliptics ${ELLIPTICS_LIBRARIES} elliptics_cocaine elliptics_cache)
45 add_library(elliptics_static STATIC ${ELLIPTICS_SRCS})
46 set_target_properties(elliptics_static PROPERTIES
47     OUTPUT_NAME elliptics
48     )
49 target_link_libraries(elliptics_static ${ELLIPTICS_LIBRARIES} elliptics_cocaine_static elliptics_cache)
51 add_library(elliptics_client SHARED ${ELLIPTICS_CLIENT_SRCS})
52 set_target_properties(elliptics_client PROPERTIES
53     VERSION ${ELLIPTICS_VERSION}
54     SOVERSION ${ELLIPTICS_VERSION_ABI}
55     )
56 #target_link_libraries(elliptics_client ${ELLIPTICS_LIBRARIES})
57 target_link_libraries(elliptics_client ${CMAKE_THREAD_LIBS_INIT})
59 add_library(elliptics_client_static STATIC ${ELLIPTICS_CLIENT_SRCS})
60 set_target_properties(elliptics_client_static PROPERTIES
61     OUTPUT_NAME elliptics_client
62     )
63 #target_link_libraries(elliptics_client_static ${ELLIPTICS_LIBRARIES})
64 target_link_libraries(elliptics_client_static ${CMAKE_THREAD_LIBS_INIT})
66 install(TARGETS elliptics elliptics_static elliptics_client elliptics_client_static
67     LIBRARY DESTINATION lib${LIB_SUFFIX}
68     ARCHIVE DESTINATION lib${LIB_SUFFIX}
69     BUNDLE DESTINATION library
70     )