2024-01-10 17:20:50 +03:00

23 lines
610 B
CMake

cmake_minimum_required(VERSION 3.27)
project(nghttp3_test)
set(CMAKE_CXX_STANDARD 20)
set(OPENSSL_ROOT_DIR /opt/homebrew/opt/openssl@3.2)
find_package(OpenSSL REQUIRED)
# Print OpenSSL version
message(STATUS "Found OpenSSL: ${OPENSSL_VERSION}")
find_package(Libevent REQUIRED)
include_directories(/opt/homebrew/Cellar/libnghttp3/1.1.0/include)
add_executable(nghttp3_test main.cpp)
target_link_libraries(${PROJECT_NAME}
OpenSSL::SSL
libevent::core
libevent::extra
libevent::openssl
libevent::pthreads
/opt/homebrew/Cellar/libnghttp3/1.1.0/lib/libnghttp3.a
)