Only work with 0.9.4 cocaine
[elliptics.git] / bindings / cpp / CMakeLists.txt
blob1b1e203bd71e4d6da5fe800a081b8ff29d279258
1 include_directories(../../include)
3 set(ELLIPTICS_CPP_SRCS
4     log.cpp
5     node.cpp
6     callback.cpp
7     )
8 add_library(elliptics_cpp SHARED ${ELLIPTICS_CPP_SRCS})
9 set_target_properties(elliptics_cpp PROPERTIES
10     VERSION ${ELLIPTICS_VERSION}
11     SOVERSION ${ELLIPTICS_VERSION_ABI}
12     )
13 target_link_libraries(elliptics_cpp elliptics_client)
15 add_library(elliptics_cpp_static STATIC ${ELLIPTICS_CPP_SRCS})
16 set_target_properties(elliptics_cpp_static PROPERTIES
17     OUTPUT_NAME elliptics_cpp
18     )
20 add_executable(dnet_cpp_test test.cpp)
21 target_link_libraries(dnet_cpp_test elliptics_cpp)
23 install(TARGETS elliptics_cpp elliptics_cpp_static
24     LIBRARY DESTINATION lib${LIB_SUFFIX}
25     ARCHIVE DESTINATION lib${LIB_SUFFIX}
26     BUNDLE DESTINATION library
27     )