FindWget.cmake 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # - Find wget
  2. # This module looks for wget. This module defines the
  3. # following values:
  4. # WGET_EXECUTABLE: the full path to the wget tool.
  5. # WGET_FOUND: True if wget has been found.
  6. #=============================================================================
  7. # Copyright 2001-2009 Kitware, Inc.
  8. #
  9. # Distributed under the OSI-approved BSD License (the "License");
  10. # see accompanying file Copyright.txt for details.
  11. #
  12. # This software is distributed WITHOUT ANY WARRANTY; without even the
  13. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. # See the License for more information.
  15. #=============================================================================
  16. # (To distribute this file outside of CMake, substitute the full
  17. # License text for the above reference.)
  18. INCLUDE(FindCygwin)
  19. FIND_PROGRAM(WGET_EXECUTABLE
  20. wget
  21. ${CYGWIN_INSTALL_PATH}/bin
  22. )
  23. # handle the QUIETLY and REQUIRED arguments and set WGET_FOUND to TRUE if
  24. # all listed variables are TRUE
  25. INCLUDE(FindPackageHandleStandardArgs)
  26. FIND_PACKAGE_HANDLE_STANDARD_ARGS(Wget DEFAULT_MSG WGET_EXECUTABLE)
  27. MARK_AS_ADVANCED( WGET_EXECUTABLE )
  28. # WGET option is deprecated.
  29. # use WGET_EXECUTABLE instead.
  30. SET (WGET ${WGET_EXECUTABLE} )