Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.10)
- project(udp_server)
- set(SRC userver.cpp main.cpp)
- set(HEADER userver.h)
- add_executable(udp_server ${SRC} ${HEADER})
- target_include_directories(
- udp_server
- PRIVATE
- ${CMAKE_CURRENT_SOURCE_DIR}/../socket_wrap
- )
- target_link_libraries(udp_server socket_wrap)
- if(WIN32)
- target_link_libraries(udp_server wsock32 ws2_32)
- endif()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement