Elliptics version update: 2.19.2.7
[elliptics.git] / srw / CMakeLists.txt
blobcdfab300ee166848d460df6fe53a7d0f7a7eb70b
1 include_directories(../include)
2 include_directories(../library)
4 add_library(elliptics_cocaine SHARED srw.cpp)
5 set_target_properties(elliptics_cocaine PROPERTIES
6     VERSION ${ELLIPTICS_VERSION}
7     SOVERSION ${ELLIPTICS_VERSION_ABI}
8     )
9 target_link_libraries(elliptics_cocaine ${ELLIPTICS_LIBRARIES})
10 add_library(elliptics_cocaine_static STATIC srw.cpp)
11 set_target_properties(elliptics_cocaine_static PROPERTIES
12     OUTPUT_NAME elliptics_cocaine
13     )
14 target_link_libraries(elliptics_cocaine_static ${ELLIPTICS_LIBRARIES})
16 install(TARGETS elliptics_cocaine elliptics_cocaine_static
17     LIBRARY DESTINATION lib${LIB_SUFFIX}
18     ARCHIVE DESTINATION lib${LIB_SUFFIX}
19     BUNDLE DESTINATION library
20     )