tree: 8c10516206143de0529903db9e9e836cf0a0acb1 [path history] [tgz]
  1. src/
  2. CMakeLists.txt
  3. invalid.arrows
  4. README.md
  5. schema-valid.arrows
examples/cmake-ipc/README.md

IPC Extension CMake Example

This folder contains a CMake project that links to its own copy of nanoarrow and nanoarrow_ipc using CMake's FetchContent module. This pattern is similar to the cmake-minimal example and includes both a library and a command-line application that can verify a small message read from stdin. To build:

git clone https://github.com/apache/arrow-nanoarrow.git
cd arrow-nanoarrow/examples/cmake-ipc
mkdir build && cd build
cmake ..
cmake --build .

You can test the command-line application using the two files provided in the example directory:

cat ../schema-valid.arrows | ./example_cmake_ipc_app
cat ../invalid.arrows | ./example_cmake_ipc_app
# Expected 0xFFFFFFFF at start of message but found 0xFFFFFF00