mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
2a7813049e
* Wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Do not use ccache if ccache defined in CMAKE_CXX_COMPILER_LAUNCHER * wip * wip * wip * wip * wip * wip * wip * Config: Allow multiple dictionaries_config * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * clean * wip * clean * clean * wip * clean * clean * wip * wip * clean * clean * clean * clean * clean * Requested changes * Reqested changes * Requested changes * Requested changes * Requested changes * Requested changes * requested changes * Requested changes * Requested changes * requested changes * Requested changes * fix * Requested changes * Requested changes * fix * Requested changes * Requested changes
24 lines
749 B
CMake
24 lines
749 B
CMake
enable_testing()
|
|
|
|
# Run tests with "make check"
|
|
if (TARGET check)
|
|
message (STATUS "Target check already exists")
|
|
else ()
|
|
include (${ClickHouse_SOURCE_DIR}/cmake/add_check.cmake)
|
|
endif ()
|
|
|
|
|
|
# Google Test from sources
|
|
add_subdirectory(${ClickHouse_SOURCE_DIR}/contrib/googletest ${CMAKE_CURRENT_BINARY_DIR}/googletest)
|
|
# avoid problems with <regexp.h>
|
|
target_compile_definitions (gtest INTERFACE GTEST_HAS_POSIX_RE=0)
|
|
target_include_directories (gtest INTERFACE ${ClickHouse_SOURCE_DIR}/contrib/googletest/include)
|
|
|
|
|
|
macro(grep_gtest_sources BASE_DIR DST_VAR)
|
|
# Cold match files that are not in tests/ directories
|
|
file(GLOB_RECURSE "${DST_VAR}" RELATIVE "${BASE_DIR}" "gtest*.cpp")
|
|
endmacro()
|
|
|
|
add_subdirectory (external_dictionaries)
|