summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-03-18 11:29:41 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-18 11:29:45 +0100
commit5c4fdf7e4cb0512694f53c8d30f8b57605e3b793 (patch)
treecb1cb581c5e275ba17896cadfa630e48f9ffc0cf
parent9f96d4996cf8c51e028f996aa82d28c4c0c22d6d (diff)
efreet: add cmake support for components.
Summary: Add support for components in the efreet config. You can now add trash and mime. Reviewers: tasn Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2178 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--cmakeconfig/EfreetConfig.cmake.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/cmakeconfig/EfreetConfig.cmake.in b/cmakeconfig/EfreetConfig.cmake.in
index cb39d97d41..c650e39250 100644
--- a/cmakeconfig/EfreetConfig.cmake.in
+++ b/cmakeconfig/EfreetConfig.cmake.in
@@ -30,3 +30,25 @@ find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
30 30
31mark_as_advanced(EFREET_INCLUDE_DIRS EFREET_LIBRARY EFREET_LIBRARIES EFREET_DEFINITIONS) 31mark_as_advanced(EFREET_INCLUDE_DIRS EFREET_LIBRARY EFREET_LIBRARIES EFREET_DEFINITIONS)
32 32
33if (Efreet_FIND_COMPONENTS)
34 foreach(_component ${Efreet_FIND_COMPONENTS})
35
36 string(TOUPPER ${_component} _COMPONENT)
37 string(TOLOWER ${_component} _component)
38 string(REGEX REPLACE "_" "-" _PKG_NAME "efreet-${_component}")
39
40 pkg_check_modules(PC_LIBEFREET_${_COMPONENT} ${_QUIET} ${_PKG_NAME})
41
42 find_library(EFREET_${_COMPONENT}_LIBRARY
43 NAMES ${PC_LIBEFREET_${_COMPONENT}_LIBRARIES}
44 HINTS ${PC_LIBEFREET_${_COMPONENT}_LIBDIR}
45 ${PC_LIBEFREET_${_COMPONENT}_LIBRARY_DIRS} )
46
47 set(EFREET_${_COMPONENT}_DEFINITIONS ${PC_LIBEFREET_${_COMPONENT}_CFLAGS_OTHER})
48 set(EFREET_${_COMPONENT}_LIBRARIES ${EFREET_${_COMPONENT}_LIBRARY})
49 set(EFREET_${_COMPONENT}_INCLUDE_DIRS ${PC_LIBEFREET_${_COMPONENT}_INCLUDE_DIRS})
50
51 find_package_handle_standard_args(efreet_${_component} DEFAULT_MSG
52 EFREET_${_COMPONENT}_LIBRARIES EFREET_${_COMPONENT}_INCLUDE_DIRS)
53 endforeach(_component)
54endif(Efreet_FIND_COMPONENTS)