Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.10)
- project(socket-wrapper C CXX)
- set(SRC
- socket_wrapper.cpp
- socket.cpp
- )
- set(HEADER
- socket_wrapper_windows.h
- socket_wrapper_unix.h
- socket_wrapper_impl.h
- socket_wrapper.h
- socket_wrap.h
- socket_headers.h
- socket_class.h
- )
- add_library(socket_wrap STATIC ${SRC} ${HEADER})
- if(WIN32)
- target_link_libraries(socket_wrap PUBLIC wsock32 ws2_32)
- endif()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement