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)
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 @@
4# EDJE_INCLUDE_DIRS - The edje include directories 4# EDJE_INCLUDE_DIRS - The edje include directories
5# EDJE_LIBRARIES - The libraries needed to use edje 5# EDJE_LIBRARIES - The libraries needed to use edje
6# EDJE_DEFINITIONS - Compiler switches required for using edje 6# EDJE_DEFINITIONS - Compiler switches required for using edje
7# EDJE_CC_EXECUTABLE - full path to the `edje_cc' program.
7 8
8set(MY_PKG edje) 9set(MY_PKG edje)
9 10
@@ -16,7 +17,10 @@ pkg_check_modules(PC_LIBEDJE ${_QUIET} ${MY_PKG})
16 17
17find_library(EDJE_LIBRARY 18find_library(EDJE_LIBRARY
18 NAMES ${PC_LIBEDJE_LIBRARIES} 19 NAMES ${PC_LIBEDJE_LIBRARIES}
19 HINTS ${PC_LIBEDJE_LIBDIR} ${PC_LIBEDJE_LIBRARY_DIRS} ) 20 HINTS ${PC_LIBEDJE_LIBDIR} ${PC_LIBEDJE_LIBRARY_DIRS})
21
22find_program(EDJE_CC_EXECUTABLE
23 NAMES edje_cc)
20 24
21set(EDJE_DEFINITIONS ${PC_LIBEDJE_CFLAGS_OTHER}) 25set(EDJE_DEFINITIONS ${PC_LIBEDJE_CFLAGS_OTHER})
22set(EDJE_LIBRARIES ${EDJE_LIBRARY}) 26set(EDJE_LIBRARIES ${EDJE_LIBRARY})
@@ -28,5 +32,5 @@ include(FindPackageHandleStandardArgs)
28find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG 32find_package_handle_standard_args(${MY_PKG} DEFAULT_MSG
29 EDJE_LIBRARIES EDJE_INCLUDE_DIRS) 33 EDJE_LIBRARIES EDJE_INCLUDE_DIRS)
30 34
31mark_as_advanced(EDJE_INCLUDE_DIRS EDJE_LIBRARY EDJE_LIBRARIES EDJE_DEFINITIONS) 35mark_as_advanced(EDJE_INCLUDE_DIRS EDJE_LIBRARY EDJE_LIBRARIES EDJE_DEFINITIONS EDJE_CC_EXECUTABLE)
32 36