diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-16 09:40:15 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-16 09:40:15 +0200 |
commit | 6f682d7d94a30433531137476cd4aaa4dd200f3b (patch) | |
tree | 673f943db1f1df0e583509858f2c62c78708f9a7 /ecmake/cmake/Modules/FindEfreet.cmake | |
parent | 2224f05d43a0d782b626d09f397767597b3d7f4f (diff) | |
parent | 23929ded8ba244359e871e1d02ee1d05d060ea71 (diff) | |
download | skeletons-6f682d7d94a30433531137476cd4aaa4dd200f3b.zip skeletons-6f682d7d94a30433531137476cd4aaa4dd200f3b.tar.gz |
Merge branch 'master' of asynk.ch:templates
Diffstat (limited to 'ecmake/cmake/Modules/FindEfreet.cmake')
-rw-r--r-- | ecmake/cmake/Modules/FindEfreet.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ecmake/cmake/Modules/FindEfreet.cmake b/ecmake/cmake/Modules/FindEfreet.cmake new file mode 100644 index 0000000..d245206 --- /dev/null +++ b/ecmake/cmake/Modules/FindEfreet.cmake @@ -0,0 +1,28 @@ +# - Try to find efreet +# Once done this will define +# EFREET_FOUND - System has efreet +# EFREET_INCLUDE_DIRS - The efreet include directories +# EFREET_LIBRARIES - The libraries needed to use efreet +# EFREET_DEFINITIONS - Compiler switches required for using efreet + +find_package(PkgConfig) +pkg_check_modules(PC_LIBEFREET QUIET efreet) +set(EFREET_DEFINITIONS ${PC_LIBEFREET_CFLAGS_OTHER}) + +find_path(EFREET_INCLUDE_DIR Efreet.h + HINTS ${PC_LIBEFREET_INCLUDEDIR} ${PC_LIBEFREET_INCLUDE_DIRS} + PATH_SUFFIXES efreet ) + +find_library(EFREET_LIBRARY NAMES efreet + HINTS ${PC_LIBEFREET_LIBDIR} ${PC_LIBEFREET_LIBRARY_DIRS} ) + +set(EFREET_LIBRARIES ${EFREET_LIBRARY} ) +set(EFREET_INCLUDE_DIRS ${EFREET_INCLUDE_DIR} ) + +include(FindPackageHandleStandardArgs) +# handle the QUIETLY and REQUIRED arguments and set EFREET_FOUND to TRUE +# if all listed variables are TRUE +find_package_handle_standard_args(efreet DEFAULT_MSG + EFREET_LIBRARY EFREET_INCLUDE_DIR) + +mark_as_advanced(EFREET_INCLUDE_DIR EFREET_LIBRARY ) |