21 set(ELLIPTICS_CLIENT_SRCS
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}
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
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}
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
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