xref: /6.0.3/platform/cbsocket/CMakeLists.txt (revision c6290174)
1add_library(cbsocket SHARED
2            ${Platform_SOURCE_DIR}/include/platform/socket.h
3            socket.cc)
4target_link_libraries(cbsocket dirutils platform ${COUCHBASE_NETWORK_LIBS})
5generate_export_header(cbsocket
6                       EXPORT_MACRO_NAME CBSOCKET_PUBLIC_API
7                       EXPORT_FILE_NAME ${Platform_BINARY_DIR}/include/platform/socket-visibility.h)
8
9install(TARGETS cbsocket
10        RUNTIME DESTINATION bin
11        LIBRARY DESTINATION lib
12        ARCHIVE DESTINATION lib)
13