if (POLICY CMP0057) cmake_policy(SET CMP0057 NEW) endif() set(__prop_names "LABEL;VERSION;FULLNAME;COMPANY;ICON;INFO") # usage: set_deploy_property( NAME [NAME [...]]) # # Set target deploy property, where NAME one of: # * LABEL - application icon name # * VERSION - version # * FULLNAME - package name in format "*.*.*" # * COMPANY - company name # * ICON - icon file # * INFO - additional info # # You can setup several properties in one command # macro(set_deploy_property _T) set(_name) set(_is_name 1) foreach(_i ${ARGN}) if (_is_name) set(_is_name 0) if (_i IN_LIST __prop_names) else() message(FATAL_ERROR "Invalid property name \"${_i}\"!") endif() set(_name ${_i}) else() set(_is_name 1) set(${_T}_${_name} ${_i}) endif() endforeach() endmacro() # usage: deploy_target(