|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | + |
| 17 | +cmake_minimum_required(VERSION 3.16) |
| 18 | + |
| 19 | +project(example) |
| 20 | + |
| 21 | +set(CMAKE_CXX_STANDARD 17) |
| 22 | + |
| 23 | +find_package(Arrow CONFIG REQUIRED) |
| 24 | +find_package(Paimon CONFIG REQUIRED) |
| 25 | + |
| 26 | +add_executable(read_write_demo read_write_demo.cpp) |
| 27 | +add_executable(clean_demo clean_demo.cpp) |
| 28 | + |
| 29 | +include_directories(${PAIMON_INCLUDE_DIRS}) |
| 30 | + |
| 31 | +set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-as-needed ${CMAKE_EXE_LINKER_FLAGS}") |
| 32 | + |
| 33 | +target_link_libraries(read_write_demo |
| 34 | + PRIVATE arrow_shared |
| 35 | + paimon_shared |
| 36 | + paimon_parquet_file_format_shared |
| 37 | + paimon_orc_file_format_shared |
| 38 | + paimon_local_file_system_shared) |
| 39 | + |
| 40 | +target_link_libraries(clean_demo |
| 41 | + PRIVATE arrow_shared |
| 42 | + paimon_shared |
| 43 | + paimon_parquet_file_format_shared |
| 44 | + paimon_orc_file_format_shared |
| 45 | + paimon_local_file_system_shared) |
0 commit comments