dc49af3c59
For now there are two methods: - `NETWORK:IsUrlAllowed()`: Check whether access to a certain URL is allowed. - `NETWORK:HttpRequest()`: Perform an HTTP request. By default access to the network is disabled for all target hosts. It can be enabled by setting `HttpEnable=1` in the preferences. Individual hosts have to be added to `HttpAllowHosts` as a comma separated list to allow access. See included docs for more details on usage.
20 lines
445 B
CMake
20 lines
445 B
CMake
# Find package structure taken from libcurl
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_path(SPDLOG_INCLUDE_DIRS spdlog/spdlog.h)
|
|
find_library(JSONCPP_LIBRARY spdlog)
|
|
|
|
find_package_handle_standard_args(SPDLOG
|
|
FOUND_VAR
|
|
SPDLOG_FOUND
|
|
REQUIRED_VARS
|
|
SPDLOG_LIBRARY
|
|
SPDLOG_INCLUDE_DIRS
|
|
FAIL_MESSAGE
|
|
"Could NOT find spdlog"
|
|
)
|
|
|
|
set(SPDLOG_INCLUDE_DIRS ${SPDLOG_INCLUDE_DIRS})
|
|
set(SPDLOG_LIBRARIES ${SPDLOG_LIBRARY})
|