FindWget¶
This module finds the wget
command-line tool for retrieving content from web
servers.
結果變數¶
This module defines the following local variables:
Wget_FOUND
True if
wget
has been found.
快取變數¶
The following cache variables may also be set:
WGET_EXECUTABLE
The full path to the
wget
tool.
範例¶
Finding wget
and executing it in a process:
find_package(Wget)
if(Wget_FOUND)
execute_process(COMMAND ${WGET_EXECUTABLE} -h)
endif()
另請參見¶
The
file(DOWNLOAD)
command to download the given URL to a local file.