aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2009-09-25 18:09:42 +0000
committerJörg Mayer <jmayer@loplof.de>2009-09-25 18:09:42 +0000
commitcbc3d3f772627505d9c695e7a414b91e83915c84 (patch)
tree7d41a5f97cca6020fa1aee90cc3aedbfab17b876 /cmake
parent8ff8f868c15ef09fb058b8dc5d68ffb5776e2988 (diff)
Try to add tpg, but it seems it doesn't build with autofoo either.
svn path=/trunk/; revision=30151
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindYAPP.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/cmake/modules/FindYAPP.cmake b/cmake/modules/FindYAPP.cmake
new file mode 100644
index 0000000000..3b38fa4c1a
--- /dev/null
+++ b/cmake/modules/FindYAPP.cmake
@@ -0,0 +1,25 @@
+#
+# $Id$
+#
+# - Find unix commands from cygwin
+# This module looks for some usual Unix commands.
+#
+
+INCLUDE(FindCygwin)
+
+FIND_PROGRAM(YAPP_EXECUTABLE
+ NAMES
+ yapp
+ PATHS
+ ${CYGWIN_INSTALL_PATH}/bin
+ /bin
+ /usr/bin
+ /usr/local/bin
+ /sbin
+)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(YAPP DEFAULT_MSG YAPP_EXECUTABLE)
+
+MARK_AS_ADVANCED(YAPP_EXECUTABLE)
+