2010-07-30 Patrick Gansterer <paroga@paroga.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 31 Jul 2010 06:27:55 +0000 (06:27 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 31 Jul 2010 06:27:55 +0000 (06:27 +0000)
        Reviewed by Nikolas Zimmermann.

        [CMake] Add FindGperf.cmake
        https://bugs.webkit.org/show_bug.cgi?id=39163

        Add a clean gperf dedection since we need it for building.

        * CMakeLists.txt:
        * cmake/FindGperf.cmake: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@64410 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
cmake/FindGperf.cmake [new file with mode: 0644]

index 55d27a1..a0d18c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2010-07-30  Patrick Gansterer  <paroga@paroga.com>
+
+        Reviewed by Nikolas Zimmermann.
+
+        [CMake] Add FindGperf.cmake
+        https://bugs.webkit.org/show_bug.cgi?id=39163
+
+        Add a clean gperf dedection since we need it for building.
+
+        * CMakeLists.txt:
+        * cmake/FindGperf.cmake: Added.
+
 2010-07-30  Rafael Antognolli  <antognolli@profusion.mobi>
 
         Reviewed by Antonio Gomes.
diff --git a/cmake/FindGperf.cmake b/cmake/FindGperf.cmake
new file mode 100644 (file)
index 0000000..0e53912
--- /dev/null
@@ -0,0 +1,19 @@
+# - Find gperf
+# This module looks for gperf. This module defines the 
+# following values:
+#  GPERF_EXECUTABLE: the full path to the gperf tool.
+#  GPERF_FOUND: True if gperf has been found.
+
+INCLUDE(FindCygwin)
+
+FIND_PROGRAM(GPERF_EXECUTABLE
+    gperf
+    ${CYGWIN_INSTALL_PATH}/bin
+)
+
+# handle the QUIETLY and REQUIRED arguments and set GPERF_FOUND to TRUE if 
+# all listed variables are TRUE
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Gperf DEFAULT_MSG GPERF_EXECUTABLE)
+
+MARK_AS_ADVANCED(GPERF_EXECUTABLE)