mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
cmake: Improved the NSIS module.
This commit is contained in:
@@ -1,23 +1,42 @@
|
|||||||
# - Try to find NSIS
|
# - Try to find NSIS
|
||||||
# Once done this will define
|
# Once done this will define
|
||||||
#
|
#
|
||||||
|
# NSIS_ROOT_DIR - Set this variable to the root installation of ZLIB
|
||||||
|
#
|
||||||
|
# Read-Only variables:
|
||||||
# NSIS_FOUND - system has NSIS
|
# NSIS_FOUND - system has NSIS
|
||||||
# NSIS_MAKE - NSIS creator executable
|
# NSIS_MAKE - NSIS creator executable
|
||||||
#
|
#
|
||||||
# Copyright (c) 2010 Andreas Schneider <mail@cynapses.org>
|
#=============================================================================
|
||||||
|
# Copyright (c) 2010-2011 Andreas Schneider <asn@cryptomilk.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use is allowed according to the terms of the New
|
# Distributed under the OSI-approved BSD License (the "License");
|
||||||
# BSD license.
|
# see accompanying file Copyright.txt for details.
|
||||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
||||||
#
|
#
|
||||||
|
# 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.
|
||||||
|
#=============================================================================
|
||||||
|
#
|
||||||
|
|
||||||
|
set(_NSIS_ROOT_PATHS
|
||||||
|
C:/NSIS/Bin
|
||||||
|
"$ENV{PROGRAMFILES}/NSIS"
|
||||||
|
)
|
||||||
|
|
||||||
|
find_path(NSIS_ROOT_PATHS
|
||||||
|
NAMES
|
||||||
|
NSIS.exe
|
||||||
|
PATHS
|
||||||
|
${_NSIS_ROOT_PATHS}
|
||||||
|
)
|
||||||
|
|
||||||
find_program(NSIS_MAKE
|
find_program(NSIS_MAKE
|
||||||
NAMES
|
NAMES
|
||||||
makensis
|
makensis
|
||||||
PATHS
|
PATHS
|
||||||
${_NSIS_DIR}
|
${NSIS_ROOT_PATH}
|
||||||
${_NSIS_DIR}/Bin
|
${NSIS_ROOT_PATH}/Bin
|
||||||
$ENV{PROGRAMFILES}/NSIS
|
|
||||||
)
|
)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
|
|||||||
Reference in New Issue
Block a user