summaryrefslogtreecommitdiff
path: root/cmakeconfig
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@samsung.com>2013-11-16 15:19:44 +0900
committerRyuan Choi <ryuan.choi@gmail.com>2013-11-16 15:21:28 +0900
commit79e87c1e09091bf740acf8957800dbebf1521a57 (patch)
tree71c511e5ed5667675edc36576f403e208eff9e82 /cmakeconfig
parent8c0d7d8e5ee23381dd6cf98355ac4522d944055e (diff)
downloadefl-79e87c1e09091bf740acf8957800dbebf1521a57.tar.gz
cmake: Add EDJE_CC_EXECUTABLE variable in EdjeConfig.cmake
Diffstat (limited to 'cmakeconfig')
-rw-r--r--cmakeconfig/EdjeConfig.cmake.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmakeconfig/EdjeConfig.cmake.in b/cmakeconfig/EdjeConfig.cmake.in
index 895b61d07c..ea98d1f3cf 100644
--- a/cmakeconfig/EdjeConfig.cmake.in
+++ b/cmakeconfig/EdjeConfig.cmake.in
@@ -4,6 +4,7 @@
# EDJE_INCLUDE_DIRS - The edje include directories
# EDJE_LIBRARIES - The libraries needed to use edje
# EDJE_DEFINITIONS - Compiler switches required for using edje
+# EDJE_CC_EXECUTABLE - full path to the `edje_cc' program.
set(MY_PKG edje)
@@ -16,7 +17,10 @@ pkg_check_modules(PC_LIBEDJE ${_QUIET} ${MY_PKG})
find_library(EDJE_LIBRARY
NAMES ${PC_LIBEDJE_LIBRARIES}
- HINTS ${PC_LIBEDJE_LIBDIR} ${PC_LIBEDJE_LIBRARY_DIRS} )
+ HINTS ${PC_LIBEDJE_LIBDIR} ${PC_LIBEDJE_LIBRARY_DIRS})
+
+find_program(EDJE_CC_EXECUTABLE
+ NAMES edje_cc)
set(EDJE_DEFINITIONS ${PC_LIBEDJE_CFLAGS_OTHER})
set(EDJE_LIBRARIES ${EDJE_LIBRARY})
@@ -28,5 +32,5 @@ include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
EDJE_LIBRARIES EDJE_INCLUDE_DIRS)
-mark_as_advanced(EDJE_INCLUDE_DIRS EDJE_LIBRARY EDJE_LIBRARIES EDJE_DEFINITIONS)
+mark_as_advanced(EDJE_INCLUDE_DIRS EDJE_LIBRARY EDJE_LIBRARIES EDJE_DEFINITIONS EDJE_CC_EXECUTABLE)