summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCygwin.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/Modules/FindCygwin.cmake b/Modules/FindCygwin.cmake
new file mode 100644
index 0000000..f63618c
--- /dev/null
+++ b/Modules/FindCygwin.cmake
@@ -0,0 +1,19 @@
+#
+# this module looks for Cygwin and some usual commands
+#
+
+FIND_PATH(CYGWIN_INSTALL_PATH
+ cygwin.bat
+ "C:/Cygwin"
+ "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/;native]"
+)
+
+FIND_PROGRAM(RM
+ rm
+ ${CYGWIN_INSTALL_PATH}/bin
+)
+
+FIND_PROGRAM(MV
+ mv
+ ${CYGWIN_INSTALL_PATH}/bin
+)