# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. add_library( mvfst_happyeyeballs QuicHappyEyeballsFunctions.cpp ) set_property(TARGET mvfst_happyeyeballs PROPERTY VERSION ${PACKAGE_VERSION}) target_include_directories( mvfst_happyeyeballs PUBLIC $ $ ) target_compile_options( mvfst_happyeyeballs PRIVATE ${_QUIC_COMMON_COMPILE_OPTIONS} ) add_dependencies( mvfst_happyeyeballs mvfst_async_udp_socket mvfst_state_machine ) target_link_libraries( mvfst_happyeyeballs PUBLIC Folly::folly mvfst_async_udp_socket mvfst_state_machine ) file( GLOB_RECURSE QUIC_API_HEADERS_TOINSTALL RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h ) list(FILTER QUIC_API_HEADERS_TOINSTALL EXCLUDE REGEX test/) foreach(header ${QUIC_API_HEADERS_TOINSTALL}) get_filename_component(header_dir ${header} DIRECTORY) install(FILES ${header} DESTINATION include/quic/happyeyeballs/${header_dir}) endforeach() install( TARGETS mvfst_happyeyeballs EXPORT mvfst-exports DESTINATION ${CMAKE_INSTALL_LIBDIR} )