aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgon Willighagen <egon.willighagen@gmail.com>2006-09-14 12:16:57 +0000
committerEgon Willighagen <egon.willighagen@gmail.com>2006-09-14 12:16:57 +0000
commit601a9517a3543a44d4758d14e3c376c327911df8 (patch)
tree6debd4ac19e8da914e14ee9ecb2841fb8deb241e
parent45ed760862b295694ff9ef111513be68f4a4b535 (diff)
downloadextra-cmake-modules-601a9517a3543a44d4758d14e3c376c327911df8.tar.gz
extra-cmake-modules-601a9517a3543a44d4758d14e3c376c327911df8.tar.bz2
Added module to detect Korundum (the KDE Ruby bindings)
svn path=/trunk/KDE/kdelibs/; revision=584322
-rw-r--r--modules/FindKorundum.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/FindKorundum.cmake b/modules/FindKorundum.cmake
new file mode 100644
index 00000000..59ad44b1
--- /dev/null
+++ b/modules/FindKorundum.cmake
@@ -0,0 +1,24 @@
+# - Find Korundum - the KDE Ruby bindings
+#
+# This module finds if Korundum is installed.
+#
+# Copyright (c) 2006, Egon Willighagen, <egonw@users.sf.net>
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+FIND_PATH(Korumdum_PATH Korundum.rb /usr/lib/ruby/1.8)
+
+IF (Korumdum_PATH)
+ SET(Korumdum_FOUND TRUE)
+ENDIF (Korumdum_PATH)
+
+IF (Korumdum_FOUND)
+ IF (NOT Korumdum_FIND_QUIETLY)
+ MESSAGE(STATUS "Found Korumdum: ${Korumdum_PATH}")
+ ENDIF (NOT Korumdum_FIND_QUIETLY)
+ELSE (Korumdum_FOUND)
+ IF (Korumdum_FIND_REQUIRED)
+ MESSAGE(FATAL_ERROR "Could not find Korumdum")
+ ENDIF (Korumdum_FIND_REQUIRED)
+ENDIF (Korumdum_FOUND) \ No newline at end of file