jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=a4ec4a6019a101d94dd062526787169652fff436

commit a4ec4a6019a101d94dd062526787169652fff436
Author: Daniel Zaoui <[email protected]>
Date:   Sun Apr 27 16:11:18 2014 +0300

    Eolian: update cmake.
    
    The change is needed for applications that want to use the installed .eo 
files
    (currently of efl and elementary).
---
 cmakeconfig/EolianConfig.cmake.in | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/cmakeconfig/EolianConfig.cmake.in 
b/cmakeconfig/EolianConfig.cmake.in
index 8ab886b..4034dbe 100644
--- a/cmakeconfig/EolianConfig.cmake.in
+++ b/cmakeconfig/EolianConfig.cmake.in
@@ -4,6 +4,7 @@
 #  EOLIAN_INCLUDE_DIRS - The eolian include directories
 #  EOLIAN_LIBRARIES - The libraries needed to use eolian
 #  EOLIAN_DEFINITIONS - Compiler switches required for using eolian
+#  EOLIAN_EO_DIR - The eolian directory for .eo storage
 
 set(MY_PKG eolian)
 
@@ -30,3 +31,11 @@ find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
 
 mark_as_advanced(EOLIAN_INCLUDE_DIRS EOLIAN_LIBRARY EOLIAN_LIBRARIES 
EOLIAN_DEFINITIONS)
 
+execute_process(COMMAND pkg-config --variable=eoincludedir eolian
+   OUTPUT_VARIABLE _pkgconfig_invoke_result
+   RESULT_VARIABLE _pkgconfig_failed)
+if(_pkgconfig_failed)
+   BUILD_WARNING ("Failed to find Eolian Eo directory.")
+else()
+   set (EOLIAN_EO_DIR ${_pkgconfig_invoke_result})
+endif()

-- 


Reply via email to