Since this is part of the Windows SDK, you do not need to look for them. Assuming you have the SDK installed, you can simply do something like:
add_executable(MyExe main.cpp) if(WIN32) target_link_libraries(MyExe wsock32 ws2_32) endif()
Fraser
source share