2022-01-16 10:44:23 +00:00
|
|
|
if (TARGET ch_contrib::rocksdb)
|
|
|
|
set(USE_ROCKSDB 1)
|
|
|
|
endif()
|
2022-01-16 10:55:08 +00:00
|
|
|
if (TARGET ch_contrib::bzip2)
|
|
|
|
set(USE_BZIP2 1)
|
|
|
|
endif()
|
2022-01-28 17:31:50 +00:00
|
|
|
if (TARGET ch_contrib::minizip)
|
|
|
|
set(USE_MINIZIP 1)
|
|
|
|
endif()
|
2022-01-16 20:00:25 +00:00
|
|
|
if (TARGET ch_contrib::snappy)
|
|
|
|
set(USE_SNAPPY 1)
|
|
|
|
endif()
|
2022-01-17 18:48:14 +00:00
|
|
|
if (TARGET ch_contrib::brotli)
|
|
|
|
set(USE_BROTLI 1)
|
|
|
|
endif()
|
2022-01-17 05:06:53 +00:00
|
|
|
if (TARGET ch_contrib::hivemetastore)
|
|
|
|
set(USE_HIVE 1)
|
|
|
|
endif()
|
2022-01-17 05:21:56 +00:00
|
|
|
if (TARGET ch_contrib::rdkafka)
|
|
|
|
set(USE_RDKAFKA 1)
|
|
|
|
endif()
|
2022-12-03 11:55:46 +00:00
|
|
|
if (TARGET ch_rust::skim)
|
|
|
|
set(USE_SKIM 1)
|
|
|
|
endif()
|
2023-07-20 10:54:42 +00:00
|
|
|
if (TARGET ch_rust::prql)
|
|
|
|
set(USE_PRQL 1)
|
|
|
|
endif()
|
2022-01-17 05:45:10 +00:00
|
|
|
if (TARGET OpenSSL::SSL)
|
|
|
|
set(USE_SSL 1)
|
|
|
|
endif()
|
2022-01-17 06:00:50 +00:00
|
|
|
if (TARGET ch_contrib::ldap)
|
|
|
|
set(USE_LDAP 1)
|
|
|
|
endif()
|
2022-01-17 07:36:58 +00:00
|
|
|
if (TARGET ch_contrib::grpc)
|
|
|
|
set(USE_GRPC 1)
|
|
|
|
endif()
|
2022-01-17 18:45:53 +00:00
|
|
|
if (TARGET ch_contrib::hdfs)
|
|
|
|
set(USE_HDFS 1)
|
|
|
|
endif()
|
2022-01-17 18:45:54 +00:00
|
|
|
if (TARGET ch_contrib::nuraft)
|
|
|
|
set(USE_NURAFT 1)
|
|
|
|
endif()
|
2022-01-17 19:20:39 +00:00
|
|
|
if (TARGET ch_contrib::icu)
|
|
|
|
set(USE_ICU 1)
|
|
|
|
endif()
|
2022-01-17 19:29:50 +00:00
|
|
|
if (TARGET ch_contrib::simdjson)
|
|
|
|
set(USE_SIMDJSON 1)
|
|
|
|
endif()
|
2022-01-17 19:37:33 +00:00
|
|
|
if (TARGET ch_contrib::rapidjson)
|
|
|
|
set(USE_RAPIDJSON 1)
|
|
|
|
endif()
|
2022-01-17 19:42:00 +00:00
|
|
|
if (TARGET ch_contrib::azure_sdk)
|
|
|
|
set(USE_AZURE_BLOB_STORAGE 1)
|
|
|
|
endif()
|
2022-01-17 19:53:36 +00:00
|
|
|
if (TARGET ch_contrib::amqp_cpp)
|
|
|
|
set(USE_AMQPCPP 1)
|
|
|
|
endif()
|
2022-05-12 16:11:32 +00:00
|
|
|
if (TARGET ch_contrib::nats_io)
|
|
|
|
set(USE_NATSIO 1)
|
|
|
|
endif()
|
2022-01-17 19:58:31 +00:00
|
|
|
if (TARGET ch_contrib::cassandra)
|
|
|
|
set(USE_CASSANDRA 1)
|
|
|
|
endif()
|
2022-01-17 20:32:13 +00:00
|
|
|
if (TARGET ch_contrib::base64)
|
|
|
|
set(USE_BASE64 1)
|
|
|
|
endif()
|
2022-01-17 21:23:14 +00:00
|
|
|
if (TARGET ch_contrib::yaml_cpp)
|
|
|
|
set(USE_YAML_CPP 1)
|
|
|
|
endif()
|
2022-01-18 06:48:23 +00:00
|
|
|
if (OS_LINUX)
|
|
|
|
set(USE_FILELOG 1)
|
|
|
|
endif()
|
2022-01-17 20:53:49 +00:00
|
|
|
if (TARGET ch_contrib::sqlite)
|
|
|
|
set(USE_SQLITE 1)
|
|
|
|
endif()
|
2022-01-17 21:29:27 +00:00
|
|
|
if (TARGET ch_contrib::libpqxx)
|
|
|
|
set(USE_LIBPQXX 1)
|
|
|
|
endif()
|
2022-01-17 21:44:15 +00:00
|
|
|
if (TARGET ch_contrib::krb5)
|
|
|
|
set(USE_KRB5 1)
|
|
|
|
endif()
|
2022-01-17 22:08:35 +00:00
|
|
|
if (TARGET ch_contrib::sentry)
|
|
|
|
set(USE_SENTRY 1)
|
|
|
|
endif()
|
2022-01-17 22:13:47 +00:00
|
|
|
if (TARGET ch_contrib::datasketches)
|
|
|
|
set(USE_DATASKETCHES 1)
|
|
|
|
endif()
|
2022-01-18 06:48:23 +00:00
|
|
|
if (TARGET ch_contrib::aws_s3)
|
|
|
|
set(USE_AWS_S3 1)
|
|
|
|
endif()
|
2022-01-18 06:48:23 +00:00
|
|
|
if (TARGET ch_contrib::mariadbclient) # ch::mysqlxx
|
|
|
|
set(USE_MYSQL 1)
|
|
|
|
endif()
|
2022-01-18 06:48:23 +00:00
|
|
|
if (ENABLE_NLP)
|
|
|
|
set(USE_NLP 1)
|
|
|
|
endif()
|
2022-12-29 02:17:52 +00:00
|
|
|
if (TARGET ch_contrib::ulid)
|
|
|
|
set(USE_ULID 1)
|
|
|
|
endif()
|
2022-01-18 06:48:23 +00:00
|
|
|
if (TARGET ch_contrib::llvm)
|
2023-10-17 00:00:07 +00:00
|
|
|
set(USE_EMBEDDED_COMPILER ${ENABLE_EMBEDDED_COMPILER})
|
|
|
|
set(USE_DWARF_PARSER ${ENABLE_DWARF_PARSER})
|
2023-12-18 17:32:31 +00:00
|
|
|
set(USE_BLAKE3 ${ENABLE_LIBRARIES})
|
2022-01-18 06:48:23 +00:00
|
|
|
endif()
|
2022-01-18 06:49:10 +00:00
|
|
|
if (TARGET ch_contrib::unixodbc)
|
|
|
|
set(USE_ODBC 1)
|
|
|
|
endif()
|
2022-01-18 06:51:13 +00:00
|
|
|
if (TARGET ch_contrib::replxx)
|
|
|
|
set(USE_REPLXX 1)
|
|
|
|
endif()
|
2022-01-18 06:51:13 +00:00
|
|
|
if (TARGET ch_contrib::cpuid)
|
|
|
|
set(USE_CPUID 1)
|
|
|
|
endif()
|
2022-01-18 06:51:13 +00:00
|
|
|
if (TARGET ch_contrib::jemalloc)
|
|
|
|
set(USE_JEMALLOC 1)
|
|
|
|
endif()
|
2023-01-13 14:22:14 +00:00
|
|
|
if (TARGET ch_contrib::gwp_asan)
|
|
|
|
set(USE_GWP_ASAN 1)
|
|
|
|
endif()
|
2022-09-28 12:35:02 +00:00
|
|
|
if (TARGET ch_contrib::h3)
|
|
|
|
set(USE_H3 1)
|
|
|
|
endif()
|
|
|
|
if (TARGET ch_contrib::s2)
|
|
|
|
set(USE_S2_GEOMETRY 1)
|
|
|
|
endif()
|
|
|
|
if (TARGET ch_contrib::fastops)
|
|
|
|
set(USE_FASTOPS 1)
|
|
|
|
endif()
|
2023-12-05 10:50:30 +00:00
|
|
|
if (TARGET ch_contrib::sqids)
|
|
|
|
set(USE_SQIDS 1)
|
|
|
|
endif()
|
2024-01-03 08:03:01 +00:00
|
|
|
if (TARGET ch_contrib::idna)
|
|
|
|
set(USE_IDNA 1)
|
|
|
|
endif()
|
2022-09-28 12:35:02 +00:00
|
|
|
if (TARGET ch_contrib::vectorscan)
|
|
|
|
set(USE_VECTORSCAN 1)
|
|
|
|
endif()
|
2024-08-09 08:33:11 +00:00
|
|
|
if (TARGET ch_contrib::qpl)
|
|
|
|
set(USE_QPL 1)
|
|
|
|
endif()
|
2024-08-09 08:50:52 +00:00
|
|
|
if (TARGET ch_contrib::qatlib)
|
|
|
|
set(USE_QATLIB 1)
|
|
|
|
endif()
|
2022-09-28 12:57:31 +00:00
|
|
|
if (TARGET ch_contrib::avrocpp)
|
|
|
|
set(USE_AVRO 1)
|
|
|
|
endif()
|
|
|
|
if (TARGET ch_contrib::parquet)
|
|
|
|
set(USE_PARQUET 1)
|
|
|
|
set(USE_ARROW 1)
|
|
|
|
set(USE_ORC 1)
|
|
|
|
endif()
|
2023-02-06 16:55:07 +00:00
|
|
|
if (TARGET ch_contrib::liburing)
|
|
|
|
set(USE_LIBURING 1)
|
|
|
|
endif ()
|
2022-09-28 12:57:31 +00:00
|
|
|
if (TARGET ch_contrib::protobuf)
|
|
|
|
set(USE_PROTOBUF 1)
|
|
|
|
endif()
|
|
|
|
if (TARGET ch_contrib::msgpack)
|
|
|
|
set(USE_MSGPACK 1)
|
|
|
|
endif()
|
|
|
|
if (TARGET ch_contrib::capnp)
|
|
|
|
set(USE_CAPNP 1)
|
|
|
|
endif()
|
2023-01-04 14:22:39 +00:00
|
|
|
if (TARGET ch_contrib::bcrypt)
|
|
|
|
set(USE_BCRYPT 1)
|
|
|
|
endif()
|
2024-01-25 20:20:58 +00:00
|
|
|
if (TARGET ch_contrib::ssh)
|
|
|
|
set(USE_SSH 1)
|
|
|
|
endif()
|
2024-08-08 20:54:29 +00:00
|
|
|
if (TARGET ch_contrib::libfiu)
|
|
|
|
set(USE_LIBFIU 1)
|
2023-04-25 20:07:04 +00:00
|
|
|
endif()
|
2023-07-28 13:00:35 +00:00
|
|
|
if (TARGET ch_contrib::libarchive)
|
|
|
|
set(USE_LIBARCHIVE 1)
|
|
|
|
endif()
|
2023-11-09 21:16:38 +00:00
|
|
|
if (TARGET ch_contrib::pocketfft)
|
|
|
|
set(USE_POCKETFFT 1)
|
|
|
|
endif()
|
2024-02-18 11:44:52 +00:00
|
|
|
if (TARGET ch_contrib::prometheus_protobufs)
|
|
|
|
set(USE_PROMETHEUS_PROTOBUFS 1)
|
|
|
|
endif()
|
2024-07-25 09:05:36 +00:00
|
|
|
if (TARGET ch_contrib::numactl)
|
|
|
|
set(USE_NUMACTL 1)
|
|
|
|
endif()
|
2023-07-23 22:03:40 +00:00
|
|
|
|
2023-08-23 17:48:35 +00:00
|
|
|
set(SOURCE_DIR ${PROJECT_SOURCE_DIR})
|