mirror of
https://github.com/3proxy/3proxy.git
synced 2026-06-13 11:00:11 +08:00
Update CMakeLists.txt
This commit is contained in:
parent
7644b80c1b
commit
0c30dd1da8
@ -64,20 +64,20 @@ endif()
|
|||||||
# For crypt: if prefix is empty, "my" is used instead (→ mycrypt)
|
# For crypt: if prefix is empty, "my" is used instead (→ mycrypt)
|
||||||
set(3PROXY_BINARY_PREFIX "3proxy_" CACHE STRING "Prefix for standalone module and crypt binary names")
|
set(3PROXY_BINARY_PREFIX "3proxy_" CACHE STRING "Prefix for standalone module and crypt binary names")
|
||||||
|
|
||||||
# Standalone module build options (OFF by default)
|
# Standalone module build options (ON by default)
|
||||||
option(3PROXY_BUILD_ALL "Build all standalone binaries" OFF)
|
option(3PROXY_BUILD_NONE "Do not build standalone binaries" OFF)
|
||||||
option(3PROXY_BUILD_PROXY "Build standalone proxy binary" OFF)
|
option(3PROXY_BUILD_PROXY "Build standalone proxy binary" ON)
|
||||||
option(3PROXY_BUILD_SOCKS "Build standalone socks binary" OFF)
|
option(3PROXY_BUILD_SOCKS "Build standalone socks binary" ON)
|
||||||
option(3PROXY_BUILD_POP3P "Build standalone pop3p binary" OFF)
|
option(3PROXY_BUILD_POP3P "Build standalone pop3p binary" ON)
|
||||||
option(3PROXY_BUILD_SMTPP "Build standalone smtpp binary" OFF)
|
option(3PROXY_BUILD_SMTPP "Build standalone smtpp binary" ON)
|
||||||
option(3PROXY_BUILD_FTPPR "Build standalone ftppr binary" OFF)
|
option(3PROXY_BUILD_FTPPR "Build standalone ftppr binary" ON)
|
||||||
option(3PROXY_BUILD_TCPPM "Build standalone tcppm binary" OFF)
|
option(3PROXY_BUILD_TCPPM "Build standalone tcppm binary" ON)
|
||||||
option(3PROXY_BUILD_UDPPM "Build standalone udppm binary" OFF)
|
option(3PROXY_BUILD_UDPPM "Build standalone udppm binary" ON)
|
||||||
option(3PROXY_BUILD_TLSPR "Build standalone tlspr binary" OFF)
|
option(3PROXY_BUILD_TLSPR "Build standalone tlspr binary" ON)
|
||||||
|
|
||||||
if(3PROXY_BUILD_ALL)
|
if(3PROXY_BUILD_NONE)
|
||||||
foreach(_M PROXY SOCKS POP3P SMTPP FTPPR TCPPM UDPPM TLSPR)
|
foreach(_M PROXY SOCKS POP3P SMTPP FTPPR TCPPM UDPPM TLSPR)
|
||||||
set(3PROXY_BUILD_${_M} ON)
|
set(3PROXY_BUILD_${_M} OFF)
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user