Mark GTK and Qt clients as GUI programs on Windows (detach from console)

This commit is contained in:
Mike Gelfand
2015-01-04 10:57:09 +00:00
parent 81c3eebbab
commit c43a10ab9d
3 changed files with 18 additions and 2 deletions

View File

@@ -80,3 +80,11 @@ macro(tr_add_external_auto_library ID LIBNAME)
set(${ID}_LIBRARIES ${${ID}_LIBRARY})
endif()
endmacro()
function(tr_append_target_property TGT PROP VAL)
get_target_property(OVAL ${TGT} ${PROP})
if(OVAL)
set(VAL "${OVAL} ${VAL}")
endif()
set_target_properties(${TGT} PROPERTIES ${PROP} "${VAL}")
endfunction()