aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/FindNSIS.cmake
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-07-13 13:19:06 +0200
committerAndreas Schneider <asn@cynapses.org>2010-08-03 18:13:59 +0200
commite41e28744ff935fcd11a6b9739d6709d167f6cad (patch)
treed008fc07b42f2092afdea9357efc89fb30522444 /cmake/Modules/FindNSIS.cmake
parente862f0452783a929745f65fad49ebb87f74e9f80 (diff)
downloadlibssh-e41e28744ff935fcd11a6b9739d6709d167f6cad.tar.gz
libssh-e41e28744ff935fcd11a6b9739d6709d167f6cad.tar.xz
libssh-e41e28744ff935fcd11a6b9739d6709d167f6cad.zip
build: Added a check for NSIS.
Diffstat (limited to 'cmake/Modules/FindNSIS.cmake')
-rw-r--r--cmake/Modules/FindNSIS.cmake31
1 files changed, 31 insertions, 0 deletions
diff --git a/cmake/Modules/FindNSIS.cmake b/cmake/Modules/FindNSIS.cmake
new file mode 100644
index 0000000..c391043
--- /dev/null
+++ b/cmake/Modules/FindNSIS.cmake
@@ -0,0 +1,31 @@
+# - Try to find NSIS
+# Once done this will define
+#
+# NSIS_FOUND - system has NSIS
+# NSIS_MAKE - NSIS creator executable
+#
+# Copyright (c) 2010 Andreas Schneider <mail@cynapses.org>
+#
+# Redistribution and use is allowed according to the terms of the New
+# BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+#
+
+if (NSIS_MAKE)
+ # in cache already
+ set(NSIS_FOUND TRUE)
+elseif (NSIS_MAKE)
+ find_program(NSIS_MAKE
+ NAMES
+ makensis
+ PATHS
+ ${_NSIS_DIR}
+ ${_NSIS_DIR}/Bin
+ $ENV{PROGRAMFILES}/NSIS
+ )
+
+ include(FindPackageHandleStandardArgs)
+ find_package_handle_standard_args(NSIS DEFAULT_MSG NSIS_MAKE)
+
+ mark_as_advanced(NSIS_MAKE)
+endif (NSIS_MAKE)