support top dir of repos as cmake target. and add example-2 copy from example-1