summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-09-24 13:47:06 +0100
committerTom Hacohen <tom@stosb.com>2014-09-24 13:47:14 +0100
commitd74943f24788102ce085b553a615d4b8e5f6eb1a (patch)
tree7c2bbe40d2dd985faec7e7791187e664a8f5aa5b
parent85a135d32e26b29c842a37bb581ae0a7d0ab6d8a (diff)
Edje cmake: Add a way to define edje compilation target.
-rw-r--r--cmakeconfig/EdjeConfig.cmake.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmakeconfig/EdjeConfig.cmake.in b/cmakeconfig/EdjeConfig.cmake.in
index ea98d1f3cf..b973aa2451 100644
--- a/cmakeconfig/EdjeConfig.cmake.in
+++ b/cmakeconfig/EdjeConfig.cmake.in
@@ -26,6 +26,19 @@ set(EDJE_DEFINITIONS ${PC_LIBEDJE_CFLAGS_OTHER})
26set(EDJE_LIBRARIES ${EDJE_LIBRARY}) 26set(EDJE_LIBRARIES ${EDJE_LIBRARY})
27set(EDJE_INCLUDE_DIRS ${PC_LIBEDJE_INCLUDE_DIRS}) 27set(EDJE_INCLUDE_DIRS ${PC_LIBEDJE_INCLUDE_DIRS})
28 28
29macro(EDJE_CC_TARGET Input)
30 cmake_parse_arguments(OPTIONS "" "" "COMPILE_FLAGS" ${ARGN})
31 STRING(REGEX REPLACE "[.]edc" ".edj" Output "${Input}" )
32 set(Output "${CMAKE_CURRENT_BINARY_DIR}/${Output}")
33 add_custom_command(OUTPUT ${Output}
34 COMMAND ${EDJE_CC_EXECUTABLE}
35 ARGS ${OPTIONS_COMPILE_FLAGS} ${Input} ${Output}
36 DEPENDS ${Input}
37 COMMENT
38 "edje_cc ${Input}"
39 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
40endmacro()
41
29include(FindPackageHandleStandardArgs) 42include(FindPackageHandleStandardArgs)
30# handle the QUIETLY and REQUIRED arguments and set EDJE_FOUND to TRUE 43# handle the QUIETLY and REQUIRED arguments and set EDJE_FOUND to TRUE
31# if all listed variables are TRUE 44# if all listed variables are TRUE