diff options
author | Daniel Zaoui <daniel.zaoui@samsung.com> | 2014-04-14 13:54:02 +0300 |
---|---|---|
committer | Daniel Zaoui <daniel.zaoui@samsung.com> | 2014-04-14 13:55:26 +0300 |
commit | e4ab76c39765891eca54a67a4d5b880498671c05 (patch) | |
tree | c6819fd4bb724b89f10afe115ef21417e8fbd77a /cmakeconfig | |
parent | 02a5a6bfea50e722bbb71b9cd813d32e453517ae (diff) |
Eolian: add support for cmake
Now with the file :-)
Diffstat (limited to 'cmakeconfig')
-rw-r--r-- | cmakeconfig/EolianConfig.cmake.in | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cmakeconfig/EolianConfig.cmake.in b/cmakeconfig/EolianConfig.cmake.in new file mode 100644 index 0000000000..8ab886b03a --- /dev/null +++ b/cmakeconfig/EolianConfig.cmake.in | |||
@@ -0,0 +1,32 @@ | |||
1 | # - Try to find eolian | ||
2 | # Once done this will define | ||
3 | # EOLIAN_FOUND - System has eolian | ||
4 | # EOLIAN_INCLUDE_DIRS - The eolian include directories | ||
5 | # EOLIAN_LIBRARIES - The libraries needed to use eolian | ||
6 | # EOLIAN_DEFINITIONS - Compiler switches required for using eolian | ||
7 | |||
8 | set(MY_PKG eolian) | ||
9 | |||
10 | find_package(PkgConfig) | ||
11 | if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER "2.8.1") | ||
12 | # "QUIET" was introduced in 2.8.2 | ||
13 | set(_QUIET QUIET) | ||
14 | endif () | ||
15 | pkg_check_modules(PC_LIBEOLIAN ${_QUIET} ${MY_PKG}) | ||
16 | |||
17 | find_library(EOLIAN_LIBRARY | ||
18 | NAMES ${PC_LIBEOLIAN_LIBRARIES} | ||
19 | HINTS ${PC_LIBEOLIAN_LIBDIR} ${PC_LIBEOLIAN_LIBRARY_DIRS} ) | ||
20 | |||
21 | set(EOLIAN_DEFINITIONS ${PC_LIBEOLIAN_CFLAGS_OTHER}) | ||
22 | set(EOLIAN_LIBRARIES ${EOLIAN_LIBRARY}) | ||
23 | set(EOLIAN_INCLUDE_DIRS ${PC_LIBEOLIAN_INCLUDE_DIRS}) | ||
24 | |||
25 | include(FindPackageHandleStandardArgs) | ||
26 | # handle the QUIETLY and REQUIRED arguments and set EOLIAN_FOUND to TRUE | ||
27 | # if all listed variables are TRUE | ||
28 | find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG | ||
29 | EOLIAN_LIBRARIES EOLIAN_INCLUDE_DIRS) | ||
30 | |||
31 | mark_as_advanced(EOLIAN_INCLUDE_DIRS EOLIAN_LIBRARY EOLIAN_LIBRARIES EOLIAN_DEFINITIONS) | ||
32 | |||