2021-11-21 16:30:36 +00:00
|
|
|
set (SRC_DIR "${ClickHouse_SOURCE_DIR}/contrib/googletest/googletest")
|
|
|
|
|
2022-01-17 20:26:05 +00:00
|
|
|
add_library(_gtest "${SRC_DIR}/src/gtest-all.cc")
|
|
|
|
set_target_properties(_gtest PROPERTIES VERSION "1.0.0")
|
2022-07-17 14:01:47 +00:00
|
|
|
target_compile_definitions (_gtest PUBLIC GTEST_HAS_POSIX_RE=0)
|
2022-01-17 20:26:05 +00:00
|
|
|
target_include_directories(_gtest SYSTEM PUBLIC "${SRC_DIR}/include")
|
|
|
|
target_include_directories(_gtest PRIVATE "${SRC_DIR}")
|
2021-11-21 16:30:36 +00:00
|
|
|
|
2022-01-17 20:26:05 +00:00
|
|
|
add_library(_gtest_main "${SRC_DIR}/src/gtest_main.cc")
|
|
|
|
set_target_properties(_gtest_main PROPERTIES VERSION "1.0.0")
|
|
|
|
target_link_libraries(_gtest_main PUBLIC _gtest)
|
|
|
|
|
|
|
|
add_library(_gtest_all INTERFACE)
|
|
|
|
target_link_libraries(_gtest_all INTERFACE _gtest _gtest_main)
|
|
|
|
add_library(ch_contrib::gtest_all ALIAS _gtest_all)
|