aboutsummaryrefslogtreecommitdiff
path: root/data/CMakeLists.txt
blob: 703cb1b6df960fb11c20ae2f8edf82173d52dfbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

if(BUILD_UI)
# theme
	find_program(EDJE_CC NAMES edje_cc)
	if(EDJE_CC_NOTFOUND)
		message(SEND_ERROR "edje_cc not found")
	else(EDJE_CC_NOTFOUND)
		message(STATUS "edje_cc found: " ${EDJE_CC})
	endif(EDJE_CC_NOTFOUND)

	add_custom_command(
		OUTPUT ${PROJECT_BINARY_DIR}/synthpod.edj
		COMMAND ${EDJE_CC} ARGS
			"-fd" ${CMAKE_CURRENT_SOURCE_DIR}/font
			"-id" ${CMAKE_CURRENT_SOURCE_DIR}/pix
			${CMAKE_CURRENT_SOURCE_DIR}/synthpod.edc
			${PROJECT_BINARY_DIR}/synthpod.edj
		DEPENDS
			${CMAKE_CURRENT_SOURCE_DIR}/fonts.edc
			${CMAKE_CURRENT_SOURCE_DIR}/modgrid.edc
			${CMAKE_CURRENT_SOURCE_DIR}/modlist.edc
			${CMAKE_CURRENT_SOURCE_DIR}/patcher.edc
			${CMAKE_CURRENT_SOURCE_DIR}/smart_slider.edc
			${CMAKE_CURRENT_SOURCE_DIR}/smart_meter.edc
			${CMAKE_CURRENT_SOURCE_DIR}/smart_spinner.edc
			${CMAKE_CURRENT_SOURCE_DIR}/smart_toggle.edc
			${CMAKE_CURRENT_SOURCE_DIR}/synthpod.edc
			${CMAKE_CURRENT_SOURCE_DIR}/theme.edc)
	add_custom_target(THEME ALL DEPENDS ${PROJECT_BINARY_DIR}/synthpod.edj)
	install(FILES ${PROJECT_BINARY_DIR}/synthpod.edj DESTINATION ${SYNTHPOD_DATA_DIR})
endif()