ORC-1689: [C++] Generate CMake config file
### What changes were proposed in this pull request?
Generate cmake config file and install it.
### Why are the changes needed?
It is good for downstream projects to find ORC library.
### How was this patch tested?
Test it locally.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #1889 from wgtmac/ORC-1689.
Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Gang Wu <ustcwg@gmail.com>