aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2009-09-25 18:09:42 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2009-09-25 18:09:42 +0000
commit14afdc70fee3eb5ac1d3fa994097af53ddcf5cc2 (patch)
tree7d41a5f97cca6020fa1aee90cc3aedbfab17b876 /cmake
parent33b36f78e6a666eaf7cf8830a2806c887e9d4792 (diff)
Try to add tpg, but it seems it doesn't build with autofoo either.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30151 f5534014-38df-0310-8fa8-9805f1628bb7
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)
+