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}
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
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