2017-04-10 17:43:30 +00:00
|
|
|
include (${ClickHouse_SOURCE_DIR}/cmake/add_check.cmake)
|
|
|
|
|
2016-02-07 21:58:58 +00:00
|
|
|
add_executable (date_lut2 date_lut2.cpp)
|
|
|
|
add_executable (date_lut3 date_lut3.cpp)
|
2017-03-23 14:41:04 +00:00
|
|
|
add_executable (date_lut_default_timezone date_lut_default_timezone.cpp)
|
2018-07-18 17:12:12 +00:00
|
|
|
add_executable (local_date_time_comparison local_date_time_comparison.cpp)
|
2019-01-10 13:22:37 +00:00
|
|
|
add_executable (realloc-perf allocator.cpp)
|
2016-12-24 01:03:10 +00:00
|
|
|
|
|
|
|
set(PLATFORM_LIBS ${CMAKE_DL_LIBS})
|
|
|
|
|
2019-09-30 11:58:32 +00:00
|
|
|
target_link_libraries (date_lut2 PRIVATE common ${PLATFORM_LIBS})
|
|
|
|
target_link_libraries (date_lut3 PRIVATE common ${PLATFORM_LIBS})
|
|
|
|
target_link_libraries (date_lut_default_timezone PRIVATE common ${PLATFORM_LIBS})
|
|
|
|
target_link_libraries (local_date_time_comparison PRIVATE common)
|
|
|
|
target_link_libraries (realloc-perf PRIVATE common)
|
2018-07-18 19:39:42 +00:00
|
|
|
add_check(local_date_time_comparison)
|
2016-02-26 06:51:36 +00:00
|
|
|
|
2019-01-25 20:02:03 +00:00
|
|
|
if(USE_GTEST)
|
2020-04-17 13:26:44 +00:00
|
|
|
add_executable(unit_tests_libcommon gtest_json_test.cpp gtest_strong_typedef.cpp gtest_find_symbols.cpp gtest_DateLutImpl.cpp
|
|
|
|
${CMAKE_BINARY_DIR}/src/Storages/System/StorageSystemTimeZones.generated.cpp
|
|
|
|
)
|
2019-09-30 11:58:32 +00:00
|
|
|
target_link_libraries(unit_tests_libcommon PRIVATE common ${GTEST_MAIN_LIBRARIES} ${GTEST_LIBRARIES})
|
2019-01-25 20:02:03 +00:00
|
|
|
add_check(unit_tests_libcommon)
|
|
|
|
endif()
|
2018-04-09 13:52:39 +00:00
|
|
|
|
|
|
|
add_executable (dump_variable dump_variable.cpp)
|
2019-09-30 11:58:32 +00:00
|
|
|
target_link_libraries (dump_variable PRIVATE clickhouse_common_io)
|