I\'ve installed the library via vcpkg and it gave me the next rows to add to cmake:
find_package(Libevent CONFIG REQUIRED) target_link_libraries(main PRIVATE