https://github.com/amoeba/arrow-cmake-fetchcontent
Minimal example of including Arrow in a C++ project using CMake and FetchContent
https://github.com/amoeba/arrow-cmake-fetchcontent
apache-arrow cmake cpp
Last synced: 5 months ago
JSON representation
Minimal example of including Arrow in a C++ project using CMake and FetchContent
- Host: GitHub
- URL: https://github.com/amoeba/arrow-cmake-fetchcontent
- Owner: amoeba
- License: apache-2.0
- Created: 2023-02-14T08:24:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T02:16:18.000Z (about 1 year ago)
- Last Synced: 2025-09-01T19:58:40.508Z (5 months ago)
- Topics: apache-arrow, cmake, cpp
- Language: C++
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# arrow-cmake-fetchcontent
A minimal and fairly self-contained example of using CMake to use Arrow C++ in a
separate C++ project. This uses FetchContent instead of ExternalProject to
include Arrow C++.
## Pre-requisites
- git
- cmake
- A C++ compiler toolchain
## Building
1. `git clone https://github.com/amoeba/arrow-cmake-fetchcontent`
2. `cd arrow-cmake-fetchcontent`
3. `mkdir build`
4. `cd build`
5. `cmake ..`
This fetches Arrow from GitHub so it takes a bit and produces no output
6. `cmake --build .`
7. `./example`
## Next steps
- Make it easier to check out different versions of Arrow
- Document how to customize the Arrow build