The package nethost can be used via CMake:

    find_package(unofficial-nethost CONFIG REQUIRED)
    target_link_libraries(main PRIVATE unofficial::nethost::nethost)