summaryrefslogtreecommitdiffstats
path: root/cmake-e/cmake/Modules/FindEvas.cmake
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-04-16 09:44:09 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-04-16 09:44:09 +0200
commitc8e52cf46a6f64dbbccbce2b705ab6bbed8905ae (patch)
treeb1b54ce532d2e61e1f26de8f1b05bad41313f56c /cmake-e/cmake/Modules/FindEvas.cmake
parentbe86ef338359ae09a38e8b87694350ef6ac84ff8 (diff)
downloadskeletons-c8e52cf46a6f64dbbccbce2b705ab6bbed8905ae.zip
skeletons-c8e52cf46a6f64dbbccbce2b705ab6bbed8905ae.tar.gz
ecmake -> cmake-e
Diffstat (limited to 'cmake-e/cmake/Modules/FindEvas.cmake')
-rw-r--r--cmake-e/cmake/Modules/FindEvas.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/cmake-e/cmake/Modules/FindEvas.cmake b/cmake-e/cmake/Modules/FindEvas.cmake
new file mode 100644
index 0000000..fe980d3
--- /dev/null
+++ b/cmake-e/cmake/Modules/FindEvas.cmake
@@ -0,0 +1,28 @@
+# - Try to find evas
+# Once done this will define
+# EVAS_FOUND - System has evas
+# EVAS_INCLUDE_DIRS - The evas include directories
+# EVAS_LIBRARIES - The libraries needed to use evas
+# EVAS_DEFINITIONS - Compiler switches required for using evas
+
+find_package(PkgConfig)
+pkg_check_modules(PC_LIBEVAS QUIET evas)
+set(EVAS_DEFINITIONS ${PC_LIBEVAS_CFLAGS_OTHER})
+
+find_path(EVAS_INCLUDE_DIR Evas.h
+ HINTS ${PC_LIBEVAS_INCLUDEDIR} ${PC_LIBEVAS_INCLUDE_DIRS}
+ PATH_SUFFIXES evas )
+
+find_library(EVAS_LIBRARY NAMES evas
+ HINTS ${PC_LIBEVAS_LIBDIR} ${PC_LIBEVAS_LIBRARY_DIRS} )
+
+set(EVAS_LIBRARIES ${EVAS_LIBRARY} )
+set(EVAS_INCLUDE_DIRS ${EVAS_INCLUDE_DIR} )
+
+include(FindPackageHandleStandardArgs)
+# handle the QUIETLY and REQUIRED arguments and set EVAS_FOUND to TRUE
+# if all listed variables are TRUE
+find_package_handle_standard_args(evas DEFAULT_MSG
+ EVAS_LIBRARY EVAS_INCLUDE_DIR)
+
+mark_as_advanced(EVAS_INCLUDE_DIR EVAS_LIBRARY )