diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-03-06 14:00:15 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-03-06 14:00:15 +0300 |
commit | 2b52843982ad694cf840c1f8f4db4872080b1418 (patch) | |
tree | c93bc66177c8ab9d4868f9cc531b88595c55cf1a /library/cpp/testing/gtest_main | |
parent | ca44d2f11d133072b5d154d206ff3840dc2383ce (diff) | |
download | ydb-2b52843982ad694cf840c1f8f4db4872080b1418.tar.gz |
Convert ydb/core/blobstorage/base tests to gtest
Diffstat (limited to 'library/cpp/testing/gtest_main')
4 files changed, 71 insertions, 0 deletions
diff --git a/library/cpp/testing/gtest_main/CMakeLists.darwin.txt b/library/cpp/testing/gtest_main/CMakeLists.darwin.txt new file mode 100644 index 00000000000..1075010e224 --- /dev/null +++ b/library/cpp/testing/gtest_main/CMakeLists.darwin.txt @@ -0,0 +1,18 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(cpp-testing-gtest_main) +target_link_libraries(cpp-testing-gtest_main PUBLIC + contrib-libs-cxxsupp + yutil + cpp-testing-gtest +) +target_sources(cpp-testing-gtest_main PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/testing/gtest_main/main.cpp +) diff --git a/library/cpp/testing/gtest_main/CMakeLists.linux-aarch64.txt b/library/cpp/testing/gtest_main/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..f3ef692fb61 --- /dev/null +++ b/library/cpp/testing/gtest_main/CMakeLists.linux-aarch64.txt @@ -0,0 +1,19 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(cpp-testing-gtest_main) +target_link_libraries(cpp-testing-gtest_main PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-testing-gtest +) +target_sources(cpp-testing-gtest_main PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/testing/gtest_main/main.cpp +) diff --git a/library/cpp/testing/gtest_main/CMakeLists.linux.txt b/library/cpp/testing/gtest_main/CMakeLists.linux.txt new file mode 100644 index 00000000000..f3ef692fb61 --- /dev/null +++ b/library/cpp/testing/gtest_main/CMakeLists.linux.txt @@ -0,0 +1,19 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(cpp-testing-gtest_main) +target_link_libraries(cpp-testing-gtest_main PUBLIC + contrib-libs-linux-headers + contrib-libs-cxxsupp + yutil + cpp-testing-gtest +) +target_sources(cpp-testing-gtest_main PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/testing/gtest_main/main.cpp +) diff --git a/library/cpp/testing/gtest_main/CMakeLists.txt b/library/cpp/testing/gtest_main/CMakeLists.txt new file mode 100644 index 00000000000..5bb4faffb40 --- /dev/null +++ b/library/cpp/testing/gtest_main/CMakeLists.txt @@ -0,0 +1,15 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux.txt) +endif() |