Advertisement
Vlad3955

LibsCMakeLists.txt

Oct 5th, 2022
1,952
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.48 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.10)
  2.  
  3. project(socket-wrapper C CXX)
  4.  
  5. set(SRC
  6.       socket_wrapper.cpp
  7.       socket.cpp
  8. )
  9.  
  10. set(HEADER
  11.          socket_wrapper_windows.h
  12.          socket_wrapper_unix.h
  13.          socket_wrapper_impl.h
  14.          socket_wrapper.h
  15.          socket_wrap.h
  16.          socket_headers.h
  17.          socket_class.h  
  18. )  
  19.  
  20. add_library(socket_wrap STATIC ${SRC} ${HEADER})
  21.  
  22. if(WIN32)
  23.   target_link_libraries(socket_wrap PUBLIC wsock32 ws2_32)
  24. endif()
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement