ClickHouse/contrib/re2-cmake/CMakeLists.txt

48 lines
1.2 KiB
CMake
Raw Normal View History

2021-11-21 15:27:33 +00:00
set(SRC_DIR "${ClickHouse_SOURCE_DIR}/contrib/re2")
set(RE2_SOURCES
2023-06-22 16:31:01 +00:00
${SRC_DIR}/re2/bitmap256.cc
2021-11-21 15:27:33 +00:00
${SRC_DIR}/re2/bitstate.cc
${SRC_DIR}/re2/compile.cc
${SRC_DIR}/re2/dfa.cc
${SRC_DIR}/re2/filtered_re2.cc
${SRC_DIR}/re2/mimics_pcre.cc
${SRC_DIR}/re2/nfa.cc
${SRC_DIR}/re2/onepass.cc
${SRC_DIR}/re2/parse.cc
${SRC_DIR}/re2/perl_groups.cc
${SRC_DIR}/re2/prefilter.cc
${SRC_DIR}/re2/prefilter_tree.cc
${SRC_DIR}/re2/prog.cc
${SRC_DIR}/re2/re2.cc
${SRC_DIR}/re2/regexp.cc
${SRC_DIR}/re2/set.cc
${SRC_DIR}/re2/simplify.cc
${SRC_DIR}/re2/tostring.cc
${SRC_DIR}/re2/unicode_casefold.cc
${SRC_DIR}/re2/unicode_groups.cc
${SRC_DIR}/util/rune.cc
${SRC_DIR}/util/strutil.cc
)
2023-09-14 16:12:29 +00:00
add_library(_re2 ${RE2_SOURCES})
target_include_directories(_re2 PUBLIC "${SRC_DIR}")
2023-11-17 10:32:27 +00:00
target_link_libraries(_re2 PRIVATE
2024-06-21 10:22:10 +00:00
absl::absl_check
absl::absl_log
2023-11-17 10:32:27 +00:00
absl::base
absl::core_headers
absl::fixed_array
2024-06-21 10:22:10 +00:00
absl::flags
2023-11-17 10:32:27 +00:00
absl::flat_hash_map
absl::flat_hash_set
2024-06-21 10:22:10 +00:00
absl::hash
2023-11-17 10:32:27 +00:00
absl::inlined_vector
absl::optional
2024-06-21 10:22:10 +00:00
absl::span
absl::str_format
absl::strings
absl::synchronization)
2023-09-14 16:12:29 +00:00
add_library(ch_contrib::re2 ALIAS _re2)