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
455 B
CMake
20 lines
455 B
CMake
# Find package structure taken from libcurl
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_path(DEFLATE_INCLUDE_DIRS libdeflate.h)
|
|
find_library(DEFLATE_LIBRARY deflate)
|
|
|
|
find_package_handle_standard_args(Deflate
|
|
FOUND_VAR
|
|
DEFLATE_FOUND
|
|
REQUIRED_VARS
|
|
DEFLATE_LIBRARY
|
|
DEFLATE_INCLUDE_DIRS
|
|
FAIL_MESSAGE
|
|
"Could NOT find deflate"
|
|
)
|
|
|
|
set(DEFLATE_INCLUDE_DIRS ${DEFLATE_INCLUDE_DIRS})
|
|
set(DEFLATE_LIBRARIES ${DEFLATE_LIBRARY})
|