File tree Expand file tree Collapse file tree 2 files changed +30
-4
lines changed Expand file tree Collapse file tree 2 files changed +30
-4
lines changed Original file line number Diff line number Diff line change
1
+ if (YDB_SDK_TESTS )
2
+ add_subdirectory (coding/unittests )
3
+ endif ()
4
+
1
5
_ydb_sdk_add_library (yt-assert )
2
6
target_compile_options (yt-assert PRIVATE
3
7
-Wdeprecated-this-capture
@@ -33,8 +37,11 @@ _ydb_sdk_add_library(yt-exception)
33
37
target_compile_options (yt-exception PRIVATE
34
38
-Wdeprecated-this-capture
35
39
)
36
- target_link_libraries (yt-exception PUBLIC
37
- yutil
40
+ target_link_libraries (yt-exception
41
+ PUBLIC
42
+ yutil
43
+ PRIVATE
44
+ yt-assert
38
45
)
39
46
target_sources (yt-exception PRIVATE
40
47
exception/exception.cpp
@@ -107,7 +114,7 @@ _ydb_sdk_install_targets(TARGETS yt-misc)
107
114
108
115
109
116
_ydb_sdk_add_library (yt-small_containers INTERFACE )
110
- target_link_libraries (yt-small_containers
117
+ target_link_libraries (yt-small_containers
111
118
INTERFACE
112
119
yutil
113
120
yt-assert
@@ -121,7 +128,7 @@ _ydb_sdk_add_library(yt-string)
121
128
target_compile_options (yt-string PRIVATE
122
129
-Wdeprecated-this-capture
123
130
)
124
- target_link_libraries (yt-string
131
+ target_link_libraries (yt-string
125
132
PUBLIC
126
133
yutil
127
134
yt-assert
Original file line number Diff line number Diff line change
1
+ add_ydb_test (NAME yt-coding-varint_ut GTEST
2
+ SOURCES
3
+ varint_ut.cpp
4
+ LINK_LIBRARIES
5
+ yt-coding
6
+ GTest::gtest_main
7
+ LABELS
8
+ unit
9
+ )
10
+
11
+ add_ydb_test (NAME yt-coding-zig_zag_ut GTEST
12
+ SOURCES
13
+ zig_zag_ut.cpp
14
+ LINK_LIBRARIES
15
+ yt-coding
16
+ GTest::gtest_main
17
+ LABELS
18
+ unit
19
+ )
You can’t perform that action at this time.
0 commit comments