build: add seallib
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
# ------------------------------
|
# ------------------------------
|
||||||
# cmake config / project
|
# cmake config / project
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
|
include(FetchContent)
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 4.1.0)
|
cmake_minimum_required(VERSION 4.1.0)
|
||||||
|
|
||||||
project(tinymitm LANGUAGES CXX)
|
project(tinymitm LANGUAGES CXX)
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
@@ -9,6 +12,19 @@ project(tinymitm LANGUAGES CXX)
|
|||||||
# ------------------------------
|
# ------------------------------
|
||||||
option(TINYMITM_TEST "Add test project" OFF)
|
option(TINYMITM_TEST "Add test project" OFF)
|
||||||
|
|
||||||
|
# ---------------------
|
||||||
|
# external dependencies
|
||||||
|
# ---------------------
|
||||||
|
FetchContent_Declare(
|
||||||
|
seallib
|
||||||
|
GIT_REPOSITORY https://git.neru.rip/neru/seallib
|
||||||
|
GIT_TAG a2784e50c7a969466fef01f9ddc8bc8c642a0a62
|
||||||
|
)
|
||||||
|
|
||||||
|
set(SEALLIB_EVENTS ON CACHE BOOL "" FORCE)
|
||||||
|
FetchContent_GetProperties(seallib)
|
||||||
|
FetchContent_MakeAvailable(seallib)
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
# proxy
|
# proxy
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
@@ -16,6 +32,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 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