diff --git a/cpp/src/arrow/adapters/orc/CMakeLists.txt b/cpp/src/arrow/adapters/orc/CMakeLists.txt index eb7194cd421..0883717aa54 100644 --- a/cpp/src/arrow/adapters/orc/CMakeLists.txt +++ b/cpp/src/arrow/adapters/orc/CMakeLists.txt @@ -23,3 +23,11 @@ install(FILES adapter.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/arrow/adapters/orc") + +# pkg-config support +configure_file(arrow-orc.pc.in + "${CMAKE_CURRENT_BINARY_DIR}/arrow-orc.pc" + @ONLY) +install( + FILES "${CMAKE_CURRENT_BINARY_DIR}/arrow-orc.pc" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/") diff --git a/cpp/src/arrow/adapters/orc/arrow-orc.pc.in b/cpp/src/arrow/adapters/orc/arrow-orc.pc.in new file mode 100644 index 00000000000..eec59ccc52e --- /dev/null +++ b/cpp/src/arrow/adapters/orc/arrow-orc.pc.in @@ -0,0 +1,24 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +libdir=@CMAKE_INSTALL_FULL_LIBDIR@ +includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ + +Name: Apache Arrow ORC +Description: ORC modules for Apache Arrow +Version: @ARROW_VERSION@ +Requires: arrow