Eolian: add support for cmake

Now with the file :-)
This commit is contained in:
Daniel Zaoui 2014-04-14 13:54:02 +03:00
parent 02a5a6bfea
commit e4ab76c397
3 changed files with 39 additions and 0 deletions

View File

@ -258,6 +258,11 @@ eo_cmakeconfig_DATA = \
cmakeconfig/EoConfig.cmake \
cmakeconfig/EoConfigVersion.cmake
eolian_cmakeconfigdir = $(libdir)/cmake/Eolian/
eolian_cmakeconfig_DATA = \
cmakeconfig/EolianConfig.cmake \
cmakeconfig/EolianConfigVersion.cmake
eet_cmakeconfigdir = $(libdir)/cmake/Eet/
eet_cmakeconfig_DATA = \
cmakeconfig/EetConfig.cmake \

View File

@ -0,0 +1,32 @@
# - Try to find eolian
# Once done this will define
# EOLIAN_FOUND - System has eolian
# EOLIAN_INCLUDE_DIRS - The eolian include directories
# EOLIAN_LIBRARIES - The libraries needed to use eolian
# EOLIAN_DEFINITIONS - Compiler switches required for using eolian
set(MY_PKG eolian)
find_package(PkgConfig)
if ("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER "2.8.1")
# "QUIET" was introduced in 2.8.2
set(_QUIET QUIET)
endif ()
pkg_check_modules(PC_LIBEOLIAN ${_QUIET} ${MY_PKG})
find_library(EOLIAN_LIBRARY
NAMES ${PC_LIBEOLIAN_LIBRARIES}
HINTS ${PC_LIBEOLIAN_LIBDIR} ${PC_LIBEOLIAN_LIBRARY_DIRS} )
set(EOLIAN_DEFINITIONS ${PC_LIBEOLIAN_CFLAGS_OTHER})
set(EOLIAN_LIBRARIES ${EOLIAN_LIBRARY})
set(EOLIAN_INCLUDE_DIRS ${PC_LIBEOLIAN_INCLUDE_DIRS})
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set EOLIAN_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
EOLIAN_LIBRARIES EOLIAN_INCLUDE_DIRS)
mark_as_advanced(EOLIAN_INCLUDE_DIRS EOLIAN_LIBRARY EOLIAN_LIBRARIES EOLIAN_DEFINITIONS)

View File

@ -4168,6 +4168,8 @@ cmakeconfig/EezeConfig.cmake
cmakeconfig/EezeConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EoConfig.cmake
cmakeconfig/EoConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EolianConfig.cmake
cmakeconfig/EolianConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EetConfig.cmake
cmakeconfig/EetConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EvasConfig.cmake