cmake: Add files for Emile, the serial killer

devs/avilog/callbacks_by_counterpart
Jean-Philippe Andre 8 years ago
parent 59532c7d96
commit 841890a7b6
  1. 5
      Makefile.am
  2. 32
      cmakeconfig/EmileConfig.cmake.in
  3. 2
      configure.ac

@ -371,6 +371,11 @@ elua_cmakeconfig_DATA = \
cmakeconfig/EluaConfig.cmake \
cmakeconfig/EluaConfigVersion.cmake
emile_cmakeconfigdir = $(libdir)/cmake/Emile
emile_cmakeconfig_DATA = \
cmakeconfig/EmileConfig.cmake \
cmakeconfig/EmileConfigVersion.cmake
# D-Bus services:
servicedir = @dbusservicedir@

@ -0,0 +1,32 @@
# - Try to find emile
# Once done this will define
# EMILE_FOUND - System has emile
# EMILE_INCLUDE_DIRS - The emile include directories
# EMILE_LIBRARIES - The libraries needed to use emile
# EMILE_DEFINITIONS - Compiler switches required for using emile
set(MY_PKG emile)
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_LIBEMILE ${_QUIET} ${MY_PKG})
find_library(EMILE_LIBRARY
NAMES ${PC_LIBEMILE_LIBRARIES}
HINTS ${PC_LIBEMILE_LIBDIR} ${PC_LIBEMILE_LIBRARY_DIRS} )
set(EMILE_DEFINITIONS ${PC_LIBEMILE_CFLAGS_OTHER})
set(EMILE_LIBRARIES ${EMILE_LIBRARY})
set(EMILE_INCLUDE_DIRS ${PC_LIBEMILE_INCLUDE_DIRS})
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set EMILE_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
EMILE_LIBRARIES EMILE_INCLUDE_DIRS)
mark_as_advanced(EMILE_INCLUDE_DIRS EMILE_LIBRARY EMILE_LIBRARIES EMILE_DEFINITIONS)

@ -4576,6 +4576,8 @@ cmakeconfig/EmotionConfig.cmake
cmakeconfig/EmotionConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EluaConfig.cmake
cmakeconfig/EluaConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
cmakeconfig/EmileConfig.cmake
cmakeconfig/EmileConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
])
AC_OUTPUT

Loading…
Cancel
Save