mirror of
https://github.com/TrustTunnel/TrustTunnelClient.git
synced 2026-05-22 19:41:36 +00:00
84433a9cf5
* feat trusttunnel-client: add vpn_tunnel_create/destroy for Linux * changelog * Add missing CHANGELOG entries for version 1.1.3
45 lines
1.1 KiB
CMake
45 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.24)
|
|
if(NOT CMAKE_INSTALL_PREFIX MATCHES "conan2")
|
|
set(CMAKE_PROJECT_TOP_LEVEL_INCLUDES "cmake/conan_bootstrap.cmake")
|
|
endif()
|
|
project(vpn_libs C CXX)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
option(VPNLIBS_ENABLE_LIVE_TESTS "Register live tests in CTest" OFF)
|
|
option(VPNLIBS_CAPI_LINUX_EXPORTS "Resolve WIN_EXPORT to default visibility in Linux C API package builds" OFF)
|
|
|
|
find_package(quiche)
|
|
if (NOT quiche_DIR)
|
|
set(DISABLE_HTTP3 ON)
|
|
endif()
|
|
|
|
if (DISABLE_HTTP3)
|
|
add_compile_definitions(DISABLE_HTTP3)
|
|
endif ()
|
|
|
|
if (MSVC)
|
|
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded)
|
|
|
|
add_compile_definitions(_WIN32_WINNT=0x0601)
|
|
add_compile_definitions(_CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE)
|
|
|
|
add_compile_options(/Oy-) # -fno-omit-frame-pointer
|
|
else ()
|
|
add_compile_options(-fno-omit-frame-pointer)
|
|
endif ()
|
|
|
|
if (IPV6_UNAVAILABLE)
|
|
add_compile_definitions(IPV6_UNAVAILABLE)
|
|
endif()
|
|
|
|
if (CMAKE_SYSTEM_NAME STREQUAL Linux AND VPNLIBS_CAPI_LINUX_EXPORTS)
|
|
add_compile_definitions(VPNLIBS_CAPI_LINUX_EXPORTS=1)
|
|
endif()
|
|
|
|
add_subdirectory(core)
|
|
add_subdirectory(trusttunnel)
|
|
|
|
enable_testing()
|