The folder cpp/examples/minimal_build/ located inside the source tree contains a Docker-based example of building and using Arrow from a third-party project, using CMake. The README file in that folder has more information.
cpp/examples/minimal_build/