aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-03-12 00:19:54 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-03-12 00:19:54 +0100
commit96076e08b4776d32ed9c9e67b9792d98305ef392 (patch)
tree6f10edcb77896bea1a77f0aa1035dfd754a6a2ca /CMakeLists.txt
parent82faac196790f77f5f984732d20b0fbd9da96f52 (diff)
downloadsynthpod-96076e08b4776d32ed9c9e67b9792d98305ef392.tar.xz
prototype patcher widget
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8eab1e30..123096b2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,6 +38,7 @@ add_executable(synthpod
synthpod.c
app.c
varchunk.c
+ patcher.c
ext_urid.c)
target_link_libraries(synthpod ${LIBS})
target_compile_definitions(synthpod PUBLIC -DAPP_DIR=${APP_DIR})
@@ -47,3 +48,23 @@ add_executable(test_varchunk
test_varchunk.c
varchunk.c)
target_link_libraries(test_varchunk ${UV_LDFLAGS})
+
+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" ${PROJECT_SOURCE_DIR}/font
+ "-id" ${PROJECT_SOURCE_DIR}/pix
+ ${PROJECT_SOURCE_DIR}/synthpod.edc
+ ${PROJECT_BINARY_DIR}/synthpod.edj
+ DEPENDS
+ ${PROJECT_SOURCE_DIR}/synthpod.edc
+ ${PROJECT_SOURCE_DIR}/patcher.edc)
+add_custom_target(THEME ALL DEPENDS ${PROJECT_BINARY_DIR}/synthpod.edj)
+install(FILES ${PROJECT_BINARY_DIR}/synthpod.edj DESTINATION ${APP_DIR})