diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:43:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 00:43:50 +0000 |
commit | ceea23677c61f20759ae986bd77b0d5c4d673edb (patch) | |
tree | 3fcec1702eaf9c14d1dd736e594f5df08dab4001 /cmakemodules/FindKBFX.cmake | |
download | kbfx-ceea23677c61f20759ae986bd77b0d5c4d673edb.tar.gz kbfx-ceea23677c61f20759ae986bd77b0d5c4d673edb.zip |
Added old KDE3 version of kbfx
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1091549 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cmakemodules/FindKBFX.cmake')
-rw-r--r-- | cmakemodules/FindKBFX.cmake | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cmakemodules/FindKBFX.cmake b/cmakemodules/FindKBFX.cmake new file mode 100644 index 0000000..b865018 --- /dev/null +++ b/cmakemodules/FindKBFX.cmake @@ -0,0 +1,32 @@ +# - Try to find the KBFX package - +# If found the following will be defined +# +# KBFX_FOUND - KBFX package found on the system +# KBFX_INCLUDE_DIR - Directory of the KBFX package include files +# KBFX_LIBRARY - Where libkbfxplasma.so resides +# + +FIND_PATH(KBFX_INCLUDE_DIR kbfx/kbfxconfig.h + PATHS + ${INCLUDE_SEARCH_PATHES} +) + +FIND_LIBRARY(KBFX_LIBRARY NAMES kbfxplasma + PATHS + ${LIB_SEARCH_PATHES} +) + +IF(KBFX_INCLUDE_DIR AND KBFX_LIBRARY) + SET(KBFX_FOUND TRUE) +ENDIF(KBFX_INCLUDE_DIR AND KBFX_LIBRARY) + +IF(KBFX_FOUND) + IF(NOT KBFX_FIND_QUIETLY) + MESSAGE(STATUS "Found KBFX package: ${KBFX_LIBRARY}") + ENDIF(NOT KBFX_FIND_QUIETLY) +ELSE(KBFX_FOUND) + IF(KBFX_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could not find KBFX package! Please download and install KBFX from http://www.kbfx.org") + ENDIF(KBFX_FIND_REQUIRED) +ENDIF(KBFX_FOUND) + |