xref: /6.0.3/platform/cbsocket/CMakeLists.txt (revision 6696145f)
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                      gsl_lite
9                      platform
10                      ${LIBEVENT_LIBRARIES}
11                      ${COUCHBASE_NETWORK_LIBS})
12
13generate_export_header(cbsocket
14                       EXPORT_MACRO_NAME CBSOCKET_PUBLIC_API
15                       EXPORT_FILE_NAME ${Platform_BINARY_DIR}/include/platform/socket-visibility.h)
16
17install(TARGETS cbsocket
18        RUNTIME DESTINATION bin
19        LIBRARY DESTINATION lib
20        ARCHIVE DESTINATION lib)
21