summaryrefslogtreecommitdiff
path: root/cmakeconfig
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-03-04 15:02:22 +0000
committerTom Hacohen <tom@stosb.com>2015-03-04 15:05:42 +0000
commita950371b1064132f9868e2adc36846205bdf55fb (patch)
tree29a1b79a2221e4cfbd1487a8a2f4a473701986ea /cmakeconfig
parent3dff8b0a436aa6b3d478d25e4afb76066e380a77 (diff)
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
Diffstat (limited to 'cmakeconfig')
-rw-r--r--cmakeconfig/EioConfig.cmake.in25
1 files changed, 25 insertions, 0 deletions
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 @@
1# trys to find eio
2# EIO_INCLUDE_DIRS eio include directories
3# EIO_LIBRARIES dependencys of eio
4# EIO_DEFINITIONS compiler stuff to use it
5set(MY_PKG eet)
6
7find_package(PkgConfig)
8if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER "2.8.2")
9 set(_QUIET QUIET)
10endif ()
11pkg_check_modules(PC_LIBEIO ${_QUIET} ${MY_PKG})
12
13find_library(EIO_LIBRARY
14 NAMES ${PC_LIBEIO_LIBRARIES}
15 HINTS ${PC_LIBEIO_LIBDIR} ${PC_LIBEIO_LIBRARY_DIRS} )
16
17set(EIO_DEFINITIONS ${PC_LIBEIO_CLAGS_OTHER})
18set(EIO_LIBRARIES ${EIO_LIBRARY})
19set(EIO_INCLUDE_DIRS ${PC_LIBEIO_INCLUDE_DIRS})
20
21include(FindPackageHandleStandardArgs)
22find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
23 EIO_LIBRARIES EIO_INCLUDE_DIRS)
24
25mark_as_advanced(EIO_INCLUDE_DIRS EIO_LIBRARY EIO_LIBRARIES EIO_DEFINITIONS)