aboutsummaryrefslogtreecommitdiffstats
path: root/ydb/library/yql/udfs/common/hyperscan/CMakeLists.txt
blob: 936c29e86a6f21ffa2d870003ff6a358bdf87052 (plain) (blame)
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
add_library(hyperscan_udf INTERFACE)
target_link_libraries(hyperscan_udf INTERFACE
  contrib-libs-cxxsupp
  yutil
  yql-public-udf
  public-udf-support
  cpp-regex-hyperscan
  cpp-regex-pcre
)

add_global_library_for(hyperscan_udf.global hyperscan_udf)
target_compile_options(hyperscan_udf.global PRIVATE
  -DUDF_ABI_VERSION_MAJOR=2
  -DUDF_ABI_VERSION_MINOR=23
  -DUDF_ABI_VERSION_PATCH=0
)
target_link_libraries(hyperscan_udf.global INTERFACE
  contrib-libs-cxxsupp
  yutil
  yql-public-udf
  public-udf-support
  cpp-regex-hyperscan
  cpp-regex-pcre
)
target_sources(hyperscan_udf.global PRIVATE
  ${CMAKE_SOURCE_DIR}/ydb/library/yql/udfs/common/hyperscan/hyperscan_udf.cpp
)

add_library(hyperscan_udf.udf SHARED)
target_compile_options(hyperscan_udf.udf PRIVATE
  -DBUILD_UDF
  -DUDF_ABI_VERSION_MAJOR=2
  -DUDF_ABI_VERSION_MINOR=23
  -DUDF_ABI_VERSION_PATCH=0
)
target_link_libraries(hyperscan_udf.udf PUBLIC
  contrib-libs-cxxsupp
  yutil
  yql-public-udf
  public-udf-support
  cpp-regex-hyperscan
  cpp-regex-pcre
)