ADD_CUSTOM_TARGET(${PACKAGE}.edj COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR}/images ${CMAKE_CURRENT_SOURCE_DIR}/edje/pwlock.edc ${CMAKE_BINARY_DIR}/${PACKAGE}.edj DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/edje/pwlock.edc ) ADD_DEPENDENCIES(${PROJECT_NAME} ${PACKAGE}.edj) #Install EDJ file INSTALL(FILES ${CMAKE_BINARY_DIR}/${PACKAGE}.edj DESTINATION ${EDJDIR}) #Install Image files INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/images/ DESTINATION ${IMAGEDIR})