1. add index for patchs; 2. add cmake options for test and binary; Signed-off-by: haozi007 <liuhao27@huawei.com>