diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-01-14 20:15:30 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-01-14 20:15:30 +0000 |
commit | f2586846661fd2ef1a999765108298ca41b57256 (patch) | |
tree | 54fb8544e8e44ef95611133af243b3d397714364 /modules/FindFAM.cmake | |
parent | df94ff6bfb0fc72d39ef37dba00db3f67c75ad22 (diff) | |
download | extra-cmake-modules-f2586846661fd2ef1a999765108298ca41b57256.tar.gz extra-cmake-modules-f2586846661fd2ef1a999765108298ca41b57256.tar.bz2 |
-simple cmake modules for detecting libart, OpenSSL, FAM, jasper and PCRE
-major improvement of am2cmake: add libtool .la files found in LIBADD to TARGET_LINK_LIBRARIES and fix the loop for adding the libs
Alex
svn path=/trunk/KDE/kdesdk/cmake/; revision=498154
Diffstat (limited to 'modules/FindFAM.cmake')
-rw-r--r-- | modules/FindFAM.cmake | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/FindFAM.cmake b/modules/FindFAM.cmake new file mode 100644 index 00000000..1ac64251 --- /dev/null +++ b/modules/FindFAM.cmake @@ -0,0 +1,27 @@ + +FIND_PATH(FAM_INCLUDE_DIR fam.h +/usr/include +/usr/local/include +) + +FIND_LIBRARY(FAM_LIBRARY NAMES fam +PATHS +/usr/lib +/usr/local/lib +) + + +IF(FAM_INCLUDE_DIR) + SET(FAM_FOUND TRUE) +ENDIF(FAM_INCLUDE_DIR) + + +IF(FAM_FOUND) + IF(NOT FAM_FIND_QUIETLY) + MESSAGE(STATUS "Found fam: ${FAM_LIBRARY}") + ENDIF(NOT FAM_FIND_QUIETLY) +ELSE(FAM_FOUND) + IF(FAM_FIND_REQUIRED) + MESSAGE(SEND_ERROR "Could not find fam library") + ENDIF(FAM_FIND_REQUIRED) +ENDIF(FAM_FOUND) |