Skip to content

Commit 2c7ebca

Browse files
committed
Add tests for library/cpp/yson into listfile (#209)
1 parent 335da80 commit 2c7ebca

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

library/cpp/yson/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
if (YDB_SDK_TESTS)
2+
add_subdirectory(ut)
3+
endif()
4+
15
_ydb_sdk_add_library(yson)
26

3-
target_link_libraries(yson
7+
target_link_libraries(yson
48
PUBLIC
59
yutil
610
yt-misc
711
yt-yson
812
)
913

10-
target_sources(yson
14+
target_sources(yson
1115
PRIVATE
1216
consumer.cpp
1317
lexer.cpp

library/cpp/yson/ut/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
add_ydb_test(NAME yson-ut GTEST
2+
SOURCES
3+
yson_ut.cpp
4+
LINK_LIBRARIES
5+
yson
6+
GTest::gtest_main
7+
LABELS
8+
unit
9+
)

0 commit comments

Comments
 (0)