The package sockpp provides CMake integration:

    find_package(sockpp CONFIG REQUIRED)
    target_include_directories(main PRIVATE ${SOCKPP_INCLUDE_DIRS})
    target_link_libraries(main PRIVATE ${SOCKPP_LIBRARIES})
