blob: 8b5c8c070180e95ad62309ca4bff1a4233201e09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
add_executable(s3select_example s3select_example.cpp)
target_include_directories(s3select_example PUBLIC ../include ../rapidjson/include)
find_package(Arrow QUIET)
if(Arrow_FOUND)
message( "arrow is installed")
add_executable(csv_to_parquet csv_to_parquet.cpp)
target_include_directories(csv_to_parquet PUBLIC ../include)
target_link_libraries(s3select_example boost_date_time boost_system boost_thread parquet arrow boost_filesystem)
target_link_libraries(csv_to_parquet boost_date_time boost_system boost_thread parquet arrow)
else()
target_link_libraries(s3select_example boost_date_time boost_system boost_thread boost_filesystem)
endif()
add_executable(generate_rand_csv generate_rand_csv.c)
add_custom_command(OUTPUT expr_genrator.py COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/expr_genrator.py expr_genrator.py
COMMENT "Copy expr_genrator.py"
VERBATIM)
add_custom_target(expr_generator ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/expr_genrator.py)
|