diff options
author | Marcel Hollerbach <marcel-hollerbach@t-online.de> | 2015-03-18 11:29:41 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-03-18 11:29:45 +0100 |
commit | 5c4fdf7e4cb0512694f53c8d30f8b57605e3b793 (patch) | |
tree | cb1cb581c5e275ba17896cadfa630e48f9ffc0cf /cmakeconfig | |
parent | 9f96d4996cf8c51e028f996aa82d28c4c0c22d6d (diff) | |
download | efl-5c4fdf7e4cb0512694f53c8d30f8b57605e3b793.tar.gz |
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>
Diffstat (limited to 'cmakeconfig')
-rw-r--r-- | cmakeconfig/EfreetConfig.cmake.in | 22 |
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 mark_as_advanced(EFREET_INCLUDE_DIRS EFREET_LIBRARY EFREET_LIBRARIES EFREET_DEFINITIONS) +if (Efreet_FIND_COMPONENTS) + foreach(_component ${Efreet_FIND_COMPONENTS}) + + string(TOUPPER ${_component} _COMPONENT) + string(TOLOWER ${_component} _component) + string(REGEX REPLACE "_" "-" _PKG_NAME "efreet-${_component}") + + pkg_check_modules(PC_LIBEFREET_${_COMPONENT} ${_QUIET} ${_PKG_NAME}) + + find_library(EFREET_${_COMPONENT}_LIBRARY + NAMES ${PC_LIBEFREET_${_COMPONENT}_LIBRARIES} + HINTS ${PC_LIBEFREET_${_COMPONENT}_LIBDIR} + ${PC_LIBEFREET_${_COMPONENT}_LIBRARY_DIRS} ) + + set(EFREET_${_COMPONENT}_DEFINITIONS ${PC_LIBEFREET_${_COMPONENT}_CFLAGS_OTHER}) + set(EFREET_${_COMPONENT}_LIBRARIES ${EFREET_${_COMPONENT}_LIBRARY}) + set(EFREET_${_COMPONENT}_INCLUDE_DIRS ${PC_LIBEFREET_${_COMPONENT}_INCLUDE_DIRS}) + + find_package_handle_standard_args(efreet_${_component} DEFAULT_MSG + EFREET_${_COMPONENT}_LIBRARIES EFREET_${_COMPONENT}_INCLUDE_DIRS) + endforeach(_component) +endif(Efreet_FIND_COMPONENTS) |