Advertisement
Vlad3955

UDPServerCMakeLists.txt

Oct 5th, 2022 (edited)
2,693
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.45 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.10)
  2.  
  3. project(udp_server)
  4.  
  5. set(SRC userver.cpp main.cpp)
  6. set(HEADER userver.h)
  7.  
  8. add_executable(udp_server ${SRC} ${HEADER})
  9. target_include_directories(
  10.                          udp_server
  11.                          PRIVATE
  12.                          ${CMAKE_CURRENT_SOURCE_DIR}/../socket_wrap
  13. )
  14. target_link_libraries(udp_server socket_wrap)
  15.  
  16.  
  17. if(WIN32)
  18.   target_link_libraries(udp_server wsock32 ws2_32)
  19. endif()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement