mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 08:15:35 +00:00
add ability to change openssl and zlib
This commit is contained in:
parent
ae38f01fdc
commit
dccdd3f5f2
@ -90,11 +90,28 @@ add_subdirectory(deps)
|
||||
|
||||
# ------------------------ VARIABLES ---------------------------------
|
||||
|
||||
include(FindLua)
|
||||
option(FIND_OPENSSL "Whether or not to find openssl automatically (keep on unless you know what you're doing)" ON)
|
||||
option(FIND_ZLIB "Whether or not to find zlib automatically (keep on unless you know what you're doing)" ON)
|
||||
|
||||
include(FindOpenSSL)
|
||||
if (${FIND_OPENSSL})
|
||||
set(OPENSSL_CRYPTO OpenSSL::Crypto)
|
||||
set(OPENSSL_SSL OpenSSL::SSL)
|
||||
else()
|
||||
message(STATUS "Using custom openssl libs: ${OPENSSL_CRYPTO} ${OPENSSL_SSL}")
|
||||
endif()
|
||||
|
||||
include(FindLua)
|
||||
include(FindThreads)
|
||||
|
||||
include(FindZLIB)
|
||||
|
||||
if (${FIND_ZLIB})
|
||||
set(ZLIB_ZLIB ZLIB::ZLIB)
|
||||
else()
|
||||
message(STATUS "Using custom zlib: ${ZLIB_ZLIB}")
|
||||
endif()
|
||||
|
||||
set(BeamMP_Sources
|
||||
include/TConsole.h src/TConsole.cpp
|
||||
include/TServer.h src/TServer.cpp
|
||||
@ -171,12 +188,12 @@ endif()
|
||||
|
||||
set(BeamMP_Libraries
|
||||
doctest::doctest
|
||||
OpenSSL::SSL
|
||||
OpenSSL::Crypto
|
||||
${OPENSSL_SSL}
|
||||
${OPENSSL_CRYPTO}
|
||||
sol2::sol2
|
||||
fmt::fmt
|
||||
Threads::Threads
|
||||
ZLIB::ZLIB
|
||||
${ZLIB_ZLIB}
|
||||
${LUA_LIBRARIES}
|
||||
commandline
|
||||
sentry
|
||||
|
Loading…
x
Reference in New Issue
Block a user