1
1
libssh/cmake/Modules/FindNSIS.cmake

40 строки
1.1 KiB
CMake
Исходник Обычный вид История

2010-07-13 15:19:06 +04:00
# - Try to find NSIS
# Once done this will define
#
2011-01-16 14:12:35 +03:00
# NSIS_ROOT_DIR - Set this variable to the root installation of ZLIB
#
# Read-Only variables:
2010-07-13 15:19:06 +04:00
# NSIS_FOUND - system has NSIS
# NSIS_MAKE - NSIS creator executable
#
2011-01-16 14:12:35 +03:00
#=============================================================================
# Copyright (c) 2010-2011 Andreas Schneider <asn@cryptomilk.org>
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
2010-07-13 15:19:06 +04:00
#
2011-01-16 14:12:35 +03:00
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
2010-07-13 15:19:06 +04:00
#
2011-01-16 14:12:35 +03:00
set(_NSIS_ROOT_PATHS
C:/NSIS/Bin
"$ENV{PROGRAMFILES}/NSIS"
)
2010-12-30 02:26:37 +03:00
find_program(NSIS_MAKE
NAMES
makensis
PATHS
2011-01-16 14:12:35 +03:00
${NSIS_ROOT_PATH}
${NSIS_ROOT_PATH}/Bin
2011-01-16 14:21:58 +03:00
${_NSIS_ROOT_PATHS}
2010-12-30 02:26:37 +03:00
)
2010-07-13 15:19:06 +04:00
2010-12-30 02:26:37 +03:00
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(NSIS DEFAULT_MSG NSIS_MAKE)
2010-07-13 15:19:06 +04:00
2010-12-30 02:26:37 +03:00
mark_as_advanced(NSIS_MAKE)