File size: 1,399 Bytes
2c3c408 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | pybind11_add_module(
cc
array.cc
attribute.cc
common.cc
common.h
consolidation_plan.cc
context.cc
current_domain.cc
dimension_label.cc
domain.cc
enum.cc
enumeration.cc
filestore.cc
filter.cc
group.cc
object.cc
query.cc
schema.cc
subarray.cc
tiledbcpp.cc
vfs.cc
)
target_link_libraries(
cc
PUBLIC
TileDB::tiledb_shared
)
target_compile_features(
cc
PUBLIC
cxx_std_20
)
if (TILEDB_REMOVE_DEPRECATIONS)
target_compile_definitions(
cc
PRIVATE
TILEDB_REMOVE_DEPRECATIONS
)
endif()
if (TILEDB_SERIALIZATION)
target_compile_definitions(
cc
PRIVATE
TILEDB_SERIALIZATION
)
endif()
install(TARGETS cc DESTINATION tiledb)
if(TILEDB_DOWNLOADED)
if (APPLE)
set_target_properties(cc PROPERTIES INSTALL_RPATH "@loader_path")
elseif(UNIX)
set_target_properties(cc PROPERTIES INSTALL_RPATH "\$ORIGIN")
endif()
else()
# If using external TileDB core library force it to be linked at runtime using RPATH
get_property(TILEDB_LOCATION TARGET TileDB::tiledb_shared PROPERTY LOCATION)
get_filename_component(TILEDB_LOCATION ${TILEDB_LOCATION} DIRECTORY)
message(STATUS "Setting RPATH for target \"cc\" to ${TILEDB_LOCATION}")
set_target_properties(cc PROPERTIES INSTALL_RPATH ${TILEDB_LOCATION})
endif()
|