From 601a9517a3543a44d4758d14e3c376c327911df8 Mon Sep 17 00:00:00 2001 From: Egon Willighagen Date: Thu, 14 Sep 2006 12:16:57 +0000 Subject: Added module to detect Korundum (the KDE Ruby bindings) svn path=/trunk/KDE/kdelibs/; revision=584322 --- modules/FindKorundum.cmake | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/FindKorundum.cmake 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, +# +# 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 -- cgit v1.2.1