diff options
author | Marcel Hollerbach <marcel-hollerbach@t-online.de> | 2015-03-04 15:02:22 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2015-03-04 15:05:42 +0000 |
commit | a950371b1064132f9868e2adc36846205bdf55fb (patch) | |
tree | 29a1b79a2221e4cfbd1487a8a2f4a473701986ea | |
parent | 3dff8b0a436aa6b3d478d25e4afb76066e380a77 (diff) | |
download | efl-a950371b1064132f9868e2adc36846205bdf55fb.tar.gz |
Eio: added cmake file
Summary: Added cmake config files for Eio
Test Plan: install it and test it with a app with needs eio
Reviewers: cedric, tasn
Reviewed By: tasn
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2079
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | cmakeconfig/EioConfig.cmake.in | 25 | ||||
-rw-r--r-- | configure.ac | 2 |
3 files changed, 32 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 77b9c01681..b1b7ea130c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -270,6 +270,11 @@ eina_cmakeconfig_DATA = \ cmakeconfig/EinaConfig.cmake \ cmakeconfig/EinaConfigVersion.cmake +eio_cmakeconfigdir = $(libdir)/cmake/Eio/ +eio_cmakeconfig_DATA = \ +cmakeconfig/EioConfig.cmake \ +cmakeconfig/EioConfigVersion.cmake + eeze_cmakeconfigdir = $(libdir)/cmake/Eeze/ eeze_cmakeconfig_DATA = \ cmakeconfig/EezeConfig.cmake \ diff --git a/cmakeconfig/EioConfig.cmake.in b/cmakeconfig/EioConfig.cmake.in new file mode 100644 index 0000000000..2269bde535 --- /dev/null +++ b/cmakeconfig/EioConfig.cmake.in @@ -0,0 +1,25 @@ +# trys to find eio +# EIO_INCLUDE_DIRS eio include directories +# EIO_LIBRARIES dependencys of eio +# EIO_DEFINITIONS compiler stuff to use it +set(MY_PKG eet) + +find_package(PkgConfig) +if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER "2.8.2") + set(_QUIET QUIET) +endif () +pkg_check_modules(PC_LIBEIO ${_QUIET} ${MY_PKG}) + +find_library(EIO_LIBRARY + NAMES ${PC_LIBEIO_LIBRARIES} + HINTS ${PC_LIBEIO_LIBDIR} ${PC_LIBEIO_LIBRARY_DIRS} ) + +set(EIO_DEFINITIONS ${PC_LIBEIO_CLAGS_OTHER}) +set(EIO_LIBRARIES ${EIO_LIBRARY}) +set(EIO_INCLUDE_DIRS ${PC_LIBEIO_INCLUDE_DIRS}) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG + EIO_LIBRARIES EIO_INCLUDE_DIRS) + +mark_as_advanced(EIO_INCLUDE_DIRS EIO_LIBRARY EIO_LIBRARIES EIO_DEFINITIONS) diff --git a/configure.ac b/configure.ac index bc4b997e8d..90a5c6d85b 100644 --- a/configure.ac +++ b/configure.ac @@ -4588,6 +4588,8 @@ cmakeconfig/EflConfig.cmake cmakeconfig/EflConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in cmakeconfig/EinaConfig.cmake cmakeconfig/EinaConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in +cmakeconfig/EioConfig.cmake +cmakeconfig/EioConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in cmakeconfig/EezeConfig.cmake cmakeconfig/EezeConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in cmakeconfig/EoConfig.cmake |