build: add wolfssl
This commit is contained in:
@@ -21,10 +21,24 @@ FetchContent_Declare(
|
|||||||
GIT_TAG a2784e50c7a969466fef01f9ddc8bc8c642a0a62
|
GIT_TAG a2784e50c7a969466fef01f9ddc8bc8c642a0a62
|
||||||
)
|
)
|
||||||
|
|
||||||
|
FetchContent_Declare(
|
||||||
|
wolfssl
|
||||||
|
GIT_REPOSITORY https://github.com/wolfSSL/wolfssl
|
||||||
|
GIT_TAG eecb8cc601f7b3987917e3ff1fa2212d5927d405
|
||||||
|
)
|
||||||
|
|
||||||
set(SEALLIB_EVENTS ON CACHE BOOL "" FORCE)
|
set(SEALLIB_EVENTS ON CACHE BOOL "" FORCE)
|
||||||
FetchContent_GetProperties(seallib)
|
FetchContent_GetProperties(seallib)
|
||||||
FetchContent_MakeAvailable(seallib)
|
FetchContent_MakeAvailable(seallib)
|
||||||
|
|
||||||
|
set(WOLFSSL_KEY_GEN ON CACHE BOOL "" FORCE)
|
||||||
|
set(WOLFSSL_CERT_GEN ON CACHE BOOL "" FORCE)
|
||||||
|
set(WOLFSSL_CERT_EXT ON CACHE BOOL "" FORCE)
|
||||||
|
set(WOLFSSL_RSA ON CACHE BOOL "" FORCE)
|
||||||
|
set(WOLFSSL_ALT_NAMES ON CACHE BOOL "" FORCE)
|
||||||
|
FetchContent_GetProperties(wolfssl)
|
||||||
|
FetchContent_MakeAvailable(wolfssl)
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
# proxy
|
# proxy
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
@@ -32,6 +46,7 @@ file(GLOB_RECURSE TINYMITM_SOURCES CONFIGURE_DEPENDS "src/proxy/*.cpp" "src/prox
|
|||||||
add_library(tinymitm STATIC ${TINYMITM_SOURCES})
|
add_library(tinymitm STATIC ${TINYMITM_SOURCES})
|
||||||
target_include_directories(tinymitm PUBLIC src/proxy)
|
target_include_directories(tinymitm PUBLIC src/proxy)
|
||||||
target_compile_features(tinymitm PUBLIC cxx_std_20)
|
target_compile_features(tinymitm PUBLIC cxx_std_20)
|
||||||
|
target_link_libraries(tinymitm PRIVATE wolfssl)
|
||||||
target_link_libraries(tinymitm PUBLIC seallib)
|
target_link_libraries(tinymitm PUBLIC seallib)
|
||||||
set_target_properties(tinymitm PROPERTIES CXX_EXTENSIONS OFF)
|
set_target_properties(tinymitm PROPERTIES CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user