Check out the "minimal build" example, which builds Arrow, then links to it separately using CMake: https://github.com/apache/arrow/tree/master/cpp/examples/minimal_build
In general you can use CMake options to install to a directory (-DCMAKE_INSTALL_PREFIX) and then use CMake options in your other project to link against that Arrow installation (-DCMAKE_PREFIX_PATH). -David On Thu, Feb 3, 2022, at 15:40, Li Jin wrote: > Hello! > > We are trying to write some program similar to: > > https://github.com/apache/arrow/blob/master/cpp/examples/arrow/execution_plan_documentation_examples.cc > > to test Arrow compute engine performance. > > We would like to build the example against Arrow default because we added a > "square root" function to it. I wonder if there is an easy way to > build/link my program against github master / custom branch or if we should > put it under cpp/examples/arrow and compile arrow lib and the main program > together? > > Thanks, > Li