aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2020-02-21 17:20:39 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2020-02-21 17:58:59 +0100
commit04be11d71be97fe91591cee18077bd244788a7a0 (patch)
tree9aac0b6e62f3e4ea085dce8fcb40c44bc32bfa18 /src
parentde70b5f128a2b993e88020ff717e763a53e385f7 (diff)
Fix build
The previous commit broke the normal creation of the widget. This commit partly reverse it. A cleaner solution should be found. Bug-AGL: SPEC-2049 Change-Id: I9c0b6be129fe4eb453dbad4bcdbcb3f891690869 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index fc19a18..1449da0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -118,3 +118,8 @@ add_custom_command(TARGET ${TARGETS_WM} POST_BUILD
add_custom_target(package DEPENDS ${PROJECT_BINARY_DIR}/package/root
COMMAND wgtpkg-pack -f -o ${PROJECT_BINARY_DIR}/package/${TARGETS_WM}.wgt ${PROJECT_BINARY_DIR}/package/root
)
+
+add_custom_target(widget DEPENDS ${PROJECT_BINARY_DIR}/package/${TARGETS_WM}.wgt
+ COMMAND cp -f ${PROJECT_BINARY_DIR}/package/${TARGETS_WM}.wgt ${PROJECT_BINARY_DIR}/${TARGETS_WM}.wgt
+)
+add_dependencies(widget package)