15 lines
580 B
CMake
15 lines
580 B
CMake
MACRO(ADD_TARGET_PROPERTIES _target _name _properties)
|
|
SET(_properties ${ARGV})
|
|
LIST(REMOVE_AT _properties 0)
|
|
LIST(REMOVE_AT _properties 0)
|
|
GET_TARGET_PROPERTY(_old_properties ${_target} ${_name})
|
|
#MESSAGE("adding property to ${_target} ${_name}: ${_properties}")
|
|
IF(NOT _old_properties)
|
|
# in case it's NOTFOUND
|
|
SET(_old_properties)
|
|
ELSE(NOT _old_properties)
|
|
SET(_old_properties "${_old_properties} ")
|
|
ENDIF(NOT _old_properties)
|
|
SET_TARGET_PROPERTIES(${_target} PROPERTIES ${_name} "${_old_properties}${_properties}")
|
|
ENDMACRO(ADD_TARGET_PROPERTIES)
|