cmake: support UDF build