diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-05-09 13:19:49 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:20 +0200 |
commit | 2d619af67dbb5c819d1f29cb1acd13e1fc9768e5 (patch) | |
tree | 6b903d0425759670d16edbd25c8d867ba82f5957 /reference/etc | |
parent | b13c380098054591e9064b0fd4579e420c05903f (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')
-rw-r--r-- | reference/etc/config.cmake | 2 | ||||
-rw-r--r-- | reference/etc/macros.cmake | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/reference/etc/config.cmake b/reference/etc/config.cmake index 596cfbb..aba7ecd 100644 --- a/reference/etc/config.cmake +++ b/reference/etc/config.cmake @@ -67,7 +67,7 @@ set(CMAKE_CXX_FLAGS "") # Print a helper message when every thing is finished # ---------------------------------------------------- #set(CLOSING_MESSAGE "") - +#set(WIDGET_MESSAGE "Install widget file using in the target : afm-util install ${PROJECT_NAME}.wgt") # (BUG!!!) as PKG_CONFIG_PATH does not work [should be an env variable] # --------------------------------------------------------------------- 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) |