What is the best way of using arrow parquet in more modern cmake?

  apache-arrow, c++, cmake

Below is the solution that worked for me, but not sure if it is the best way to do this. I used brew to install it. vcpkg does not work at the moment, unfortunately. What I don’t like about this solution is that I need to set Parquet_DIR and find_package(Parquet) separately.

set(Parquet_DIR /usr/local/lib/cmake/arrow)

find_package(Arrow CONFIG REQUIRED)
find_package(Parquet CONFIG REQUIRED)
target_link_libraries(database PRIVATE arrow_shared parquet_shared)

Source: Windows Questions C++