summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2017-06-08 17:00:20 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:47 +0200
commit0d08c218738ffaef2ff53d4af05d6391255703c9 (patch)
tree033cdaf207f73dd18e262775dee45a9d1830023f /cmake
parent75374aa004fdb27d734cceb299c46a7912a4b4d5 (diff)
common.cmake: fix icon copy and final name in package
Change-Id: I6791a0e0de9e8f3d3b540550f9dfe9c06821f4ae Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/common.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake
index f3d6d48..63396f6 100644
--- a/cmake/common.cmake
+++ b/cmake/common.cmake
@@ -187,7 +187,8 @@ macro(wgt_package_build)
configure_file(${WGT_TEMPLATE_DIR}/config.xml.in ${PROJECT_PKG_BUILD_DIR}/config.xml)
configure_file(${WGT_TEMPLATE_DIR}/config.xml.in ${PROJECT_PKG_ENTRY_POINT}/config.xml)
- file(COPY ${WGT_TEMPLATE_DIR}/icon-default.png DESTINATION ${PROJECT_PKG_BUILD_DIR}/${PROJECT_ICON})
+ file(COPY ${WGT_TEMPLATE_DIR}/icon-default.png DESTINATION ${PROJECT_PKG_BUILD_DIR})
+ file(RENAME ${PROJECT_PKG_BUILD_DIR}/icon-default.png ${PROJECT_PKG_BUILD_DIR}/${PROJECT_ICON})
# Fulup ??? copy any extra file in wgt/etc into populate package before building the widget
file(GLOB PROJECT_CONF_FILES "${WGT_TEMPLATE_DIR}/etc/*")