aboutsummaryrefslogtreecommitdiff
path: root/modules/FindFAM.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-02-12 14:38:04 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-02-12 14:38:04 +0000
commit75a07dd38b4a491a9d16d24492bea5c6ba90a8ff (patch)
tree0a65094e22bba335545b8ffe4a33fe7790edb21c /modules/FindFAM.cmake
parentbce40e0de3b22a291ecaa2b75358e6a998e1579b (diff)
downloadextra-cmake-modules-75a07dd38b4a491a9d16d24492bea5c6ba90a8ff.tar.gz
extra-cmake-modules-75a07dd38b4a491a9d16d24492bea5c6ba90a8ff.tar.bz2
-moved the cmake code to find kdewin32 out of FindKDE4.cmake and into its own FindKDEWIN32.cmake file
-added a new FindGNUWIN32.cmake file, which tries to find the gnuwin32 base directory -changed all "FOO_LIBRARY" variable names to "FOO_LIBRARIES" to be more consistent with the other cmake modules -added a macro_getenv_win_path() which replaces all backslahes with slashes from environment variables -modified the kde4_add_kcfg_files() command, so that the generated header is also processed by moc -all tests compile and link Alex CCMAIL:kde-buildsystem@kde.org The changes to the windows stuff are untested, since I don't have a windows box. Please check that everything still works. Please have a look at FindGNUWIN32.cmake, there are probably ways to improve this. The resulting GNUWIN32_DIR variable is used in other cmake modules as default path to search for headers and libraries. svn path=/trunk/KDE/kdelibs/; revision=508648
Diffstat (limited to 'modules/FindFAM.cmake')
-rw-r--r--modules/FindFAM.cmake27
1 files changed, 18 insertions, 9 deletions
diff --git a/modules/FindFAM.cmake b/modules/FindFAM.cmake
index bfc553fe..0479bc8f 100644
--- a/modules/FindFAM.cmake
+++ b/modules/FindFAM.cmake
@@ -1,27 +1,36 @@
+# - Try to find the FAM directory notification library
+# Once done this will define
+#
+# FAM_FOUND - system has FAM
+# FAM_INCLUDE_DIR - the FAM include directory
+# FAM_LIBRARIES - The libraries needed to use FAM
FIND_PATH(FAM_INCLUDE_DIR fam.h
-/usr/include
-/usr/local/include
+ /usr/include
+ /usr/local/include
)
-FIND_LIBRARY(FAM_LIBRARY NAMES fam
-PATHS
-/usr/lib
-/usr/local/lib
+FIND_LIBRARY(FAM_LIBRARIES NAMES fam
+ PATHS
+ /usr/lib
+ /usr/local/lib
)
-IF(FAM_INCLUDE_DIR)
+IF(FAM_INCLUDE_DIR AND FAM_LIBRARIES)
SET(FAM_FOUND TRUE)
-ENDIF(FAM_INCLUDE_DIR)
+ENDIF(FAM_INCLUDE_DIR AND FAM_LIBRARIES)
IF(FAM_FOUND)
IF(NOT FAM_FIND_QUIETLY)
- MESSAGE(STATUS "Found fam: ${FAM_LIBRARY}")
+ MESSAGE(STATUS "Found fam: ${FAM_LIBRARIES}")
ENDIF(NOT FAM_FIND_QUIETLY)
ELSE(FAM_FOUND)
IF(FAM_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find fam library")
ENDIF(FAM_FIND_REQUIRED)
ENDIF(FAM_FOUND)
+
+MARK_AS_ADVANCED(FAM_INCLUDE_DIR FAM_LIBRARIES)
+