Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,18 @@ set(SPARROW_EXTENSIONS_HEADERS
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/config/sparrow_extensions_version.hpp

# ./
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/uuid_array.hpp
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/json_array.hpp
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/bool8_array.hpp
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/fixed_shape_tensor.hpp
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/json_array.hpp
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/uuid_array.hpp

#../
# ${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions.hpp
)

set(SPARROW_EXTENSIONS_SRC
${SPARROW_EXTENSIONS_SOURCE_DIR}/bool8_array.cpp
${SPARROW_EXTENSIONS_SOURCE_DIR}/fixed_shape_tensor.cpp
${SPARROW_EXTENSIONS_SOURCE_DIR}/json_array.cpp
${SPARROW_EXTENSIONS_SOURCE_DIR}/uuid_array.cpp
)
Expand Down Expand Up @@ -246,7 +248,7 @@ target_include_directories(sparrow-extensions PUBLIC

set_target_properties(sparrow-extensions PROPERTIES CMAKE_CXX_EXTENSIONS OFF)
target_compile_features(sparrow-extensions PUBLIC cxx_std_20)
target_link_libraries(sparrow-extensions PUBLIC sparrow::sparrow ${SPARROW_EXTENSIONS_INTERFACE_DEPENDENCIES})
target_link_libraries(sparrow-extensions PUBLIC ${SPARROW_EXTENSIONS_INTERFACE_DEPENDENCIES})

if(ENABLE_COVERAGE)
enable_coverage(sparrow-extensions)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Extension types for the [sparrow](https://github.com/man-group/sparrow) library
- `uuid_array`: Arrow-compatible array for storing UUID values as 16-byte fixed-width binary according to the `arrow.uuid` extension type specification.
- `json_array`: Arrow-compatible array for storing JSON values as UTF-8 strings according to the `arrow.json` extension type specification.
- `bool8_array`: Arrow-compatible array for storing boolean values as 8-bit integers according to the `arrow.bool8` extension type specification.
- `fixed_shape_tensor_array`: Arrow-compatible array for storing fixed-shape tensors according to the `arrow.fixed_shape_tensor` extension type specification.

## Installation

### Install from sources
Expand Down
11 changes: 11 additions & 0 deletions cmake/external_dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ if(NOT TARGET sparrow::sparrow)
add_library(sparrow::sparrow ALIAS sparrow)
endif()

# add sparrow::sparrow to SPARROW_EXTENSIONS_INTERFACE_DEPENDENCIES list
set(SPARROW_EXTENSIONS_INTERFACE_DEPENDENCIES sparrow::sparrow)

find_package_or_fetch(
PACKAGE_NAME simdjson
GIT_REPOSITORY https://github.com/simdjson/simdjson.git
TAG v4.2.4
)

set(SPARROW_EXTENSIONS_INTERFACE_DEPENDENCIES ${SPARROW_EXTENSIONS_INTERFACE_DEPENDENCIES} simdjson::simdjson)

if(SPARROW_EXTENSIONS_BUILD_TESTS)
find_package_or_fetch(
PACKAGE_NAME doctest
Expand Down
Loading
Loading