|
|
|
@ -1,3 +1,8 @@
|
|
|
|
|
if(APPLE)
|
|
|
|
|
set(WITH_BOOTSTRAP OFF)
|
|
|
|
|
else()
|
|
|
|
|
option(WITH_BOOTSTRAP "build lokinet-bootstrap tool" ON)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
add_executable(lokinet-vpn lokinet-vpn.cpp)
|
|
|
|
|
if(APPLE)
|
|
|
|
@ -5,8 +10,12 @@ if(APPLE)
|
|
|
|
|
enable_lto(lokinet)
|
|
|
|
|
else()
|
|
|
|
|
add_executable(lokinet lokinet.cpp)
|
|
|
|
|
add_executable(lokinet-bootstrap lokinet-bootstrap.cpp)
|
|
|
|
|
enable_lto(lokinet lokinet-vpn lokinet-bootstrap)
|
|
|
|
|
if(WITH_BOOTSTRAP)
|
|
|
|
|
add_executable(lokinet-bootstrap lokinet-bootstrap.cpp)
|
|
|
|
|
enable_lto(lokinet lokinet-vpn lokinet-bootstrap)
|
|
|
|
|
else()
|
|
|
|
|
enable_lto(lokinet lokinet-vpn)
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -30,7 +39,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(NOT APPLE)
|
|
|
|
|
if(WITH_BOOTSTRAP)
|
|
|
|
|
target_link_libraries(lokinet-bootstrap PUBLIC cpr::cpr)
|
|
|
|
|
if(NOT WIN32)
|
|
|
|
|
find_package(OpenSSL REQUIRED)
|
|
|
|
@ -40,7 +49,7 @@ if(NOT APPLE)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
set(exetargets lokinet lokinet-vpn)
|
|
|
|
|
if(NOT APPLE)
|
|
|
|
|
if(WITH_BOOTSTRAP)
|
|
|
|
|
list(APPEND exetargets lokinet-bootstrap)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|