summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d18172d..9b8ff97 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,12 @@ install (TARGETS yelp-client DESTINATION bin)
# AGL binding
configure_file(config.xml.in config.xml)
+if("${CMAKE_BUILD_TYPE}" MATCHES "[Dd][Ee][Bb][Uu][Gg]")
+ set (WGT_SUFFIX "-debug")
+else()
+ set (WGT_SUFFIX "")
+endif()
+
add_custom_command(
OUTPUT poi.wgt
DEPENDS yelp-client
@@ -55,7 +61,7 @@ add_custom_command(
COMMAND cp config.xml package/root/
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/HMI_AppLauncher_POI_Active-01.png package/root/icon.png
COMMAND cp yelp-client package/root/poi
- COMMAND wgtpkg-pack -f -o package/poi.wgt package/root
- COMMAND cp package/poi.wgt .
+ COMMAND wgtpkg-pack -f -o package/poi${WGT_SUFFIX}.wgt package/root
+ COMMAND cp package/poi${WGT_SUFFIX}.wgt .
)
add_custom_target(widget ALL DEPENDS poi.wgt)