diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-02-21 16:10:36 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-02-21 16:10:36 +0200 |
commit | 69dbc046eb5a82b38c6d5c3302e9b3b0b3c1bcf1 (patch) | |
tree | e892b50187ba7343cb75f359ccbb55bdde19afd5 /src/lua/cmake | |
parent | c57637b4c39319e0c0d5d80d0ae2884aec66d691 (diff) | |
download | minetest-69dbc046eb5a82b38c6d5c3302e9b3b0b3c1bcf1.tar.gz minetest-69dbc046eb5a82b38c6d5c3302e9b3b0b3c1bcf1.tar.bz2 minetest-69dbc046eb5a82b38c6d5c3302e9b3b0b3c1bcf1.zip |
preliminary lua scripting framework for objects
Diffstat (limited to 'src/lua/cmake')
-rw-r--r-- | src/lua/cmake/CustomMacros.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lua/cmake/CustomMacros.cmake b/src/lua/cmake/CustomMacros.cmake new file mode 100644 index 000000000..9318ea4eb --- /dev/null +++ b/src/lua/cmake/CustomMacros.cmake @@ -0,0 +1,14 @@ + +macro(add_target_properties _target _name) + set(_properties) + foreach(_prop ${ARGN}) + set(_properties "${_properties} ${_prop}") + endforeach(_prop) + get_target_property(_old_properties ${_target} ${_name}) + if(NOT _old_properties) + # in case it's NOTFOUND + set(_old_properties) + endif(NOT _old_properties) + set_target_properties(${_target} PROPERTIES ${_name} "${_old_properties} ${_properties}") +endmacro(add_target_properties) + |