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