summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-03-17 19:19:28 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-03-17 19:29:14 +0900
commit841890a7b63d5c9dc4c73e28856d43981f017ef4 (patch)
treeb005a1ed87f1d6198710101999a8946a3807c531
parent59532c7d9692d70d8fb6b59a76a0611aec15ce3f (diff)
cmake: Add files for Emile, the serial killer
-rw-r--r--Makefile.am5
-rw-r--r--cmakeconfig/EmileConfig.cmake.in32
-rw-r--r--configure.ac2
3 files changed, 39 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index af334fed22..345b6fabbd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -371,6 +371,11 @@ elua_cmakeconfig_DATA = \
371cmakeconfig/EluaConfig.cmake \ 371cmakeconfig/EluaConfig.cmake \
372cmakeconfig/EluaConfigVersion.cmake 372cmakeconfig/EluaConfigVersion.cmake
373 373
374emile_cmakeconfigdir = $(libdir)/cmake/Emile
375emile_cmakeconfig_DATA = \
376cmakeconfig/EmileConfig.cmake \
377cmakeconfig/EmileConfigVersion.cmake
378
374# D-Bus services: 379# D-Bus services:
375 380
376servicedir = @dbusservicedir@ 381servicedir = @dbusservicedir@
diff --git a/cmakeconfig/EmileConfig.cmake.in b/cmakeconfig/EmileConfig.cmake.in
new file mode 100644
index 0000000000..68c284cf37
--- /dev/null
+++ b/cmakeconfig/EmileConfig.cmake.in
@@ -0,0 +1,32 @@
1# - Try to find emile
2# Once done this will define
3# EMILE_FOUND - System has emile
4# EMILE_INCLUDE_DIRS - The emile include directories
5# EMILE_LIBRARIES - The libraries needed to use emile
6# EMILE_DEFINITIONS - Compiler switches required for using emile
7
8set(MY_PKG emile)
9
10find_package(PkgConfig)
11if ("${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)
14endif ()
15pkg_check_modules(PC_LIBEMILE ${_QUIET} ${MY_PKG})
16
17find_library(EMILE_LIBRARY
18 NAMES ${PC_LIBEMILE_LIBRARIES}
19 HINTS ${PC_LIBEMILE_LIBDIR} ${PC_LIBEMILE_LIBRARY_DIRS} )
20
21set(EMILE_DEFINITIONS ${PC_LIBEMILE_CFLAGS_OTHER})
22set(EMILE_LIBRARIES ${EMILE_LIBRARY})
23set(EMILE_INCLUDE_DIRS ${PC_LIBEMILE_INCLUDE_DIRS})
24
25include(FindPackageHandleStandardArgs)
26# handle the QUIETLY and REQUIRED arguments and set EMILE_FOUND to TRUE
27# if all listed variables are TRUE
28find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
29 EMILE_LIBRARIES EMILE_INCLUDE_DIRS)
30
31mark_as_advanced(EMILE_INCLUDE_DIRS EMILE_LIBRARY EMILE_LIBRARIES EMILE_DEFINITIONS)
32
diff --git a/configure.ac b/configure.ac
index 0466b01147..fb4ea3ecf7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4576,6 +4576,8 @@ cmakeconfig/EmotionConfig.cmake
4576cmakeconfig/EmotionConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in 4576cmakeconfig/EmotionConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
4577cmakeconfig/EluaConfig.cmake 4577cmakeconfig/EluaConfig.cmake
4578cmakeconfig/EluaConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in 4578cmakeconfig/EluaConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
4579cmakeconfig/EmileConfig.cmake
4580cmakeconfig/EmileConfigVersion.cmake:cmakeconfig/EFLConfigVersion.cmake.in
4579]) 4581])
4580 4582
4581AC_OUTPUT 4583AC_OUTPUT