aboutsummaryrefslogtreecommitdiffstats
path: root/reference/etc/macros.cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-09 13:19:49 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-09 13:19:49 +0200
commitefb645a03709e9cf25f8312603a3f01d54ffea52 (patch)
tree409192884fc5b53d01b8f221d23899a9ab2ea5c1 /reference/etc/macros.cmake
parent7e358c8d5f94ac7658321cba5b6918ec6d33a3ea (diff)
Adding a widget message after building the widget package.
Change-Id: I868faad7cc1985cd2fe0267694d2ec363ab01d7d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'reference/etc/macros.cmake')
-rw-r--r--reference/etc/macros.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/reference/etc/macros.cmake b/reference/etc/macros.cmake
index 45c1a1f..e2ed2f0 100644
--- a/reference/etc/macros.cmake
+++ b/reference/etc/macros.cmake
@@ -133,6 +133,12 @@ macro(project_package_build)
add_custom_target(widget DEPENDS ${PROJECT_NAME}.wgt)
add_dependencies(widget MAIN_POPULATE)
set(ADDITIONAL_MAKE_CLEAN_FILES, "${PROJECT_NAME}.wgt")
+
+ if(WIDGET_MESSAGE)
+ add_custom_command(TARGET widget
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan "++ ${WIDGET_MESSAGE}")
+ endif()
endmacro(project_package_build)
macro(project_subdirs_add)