2017-11-21 19:17:24 +00:00
|
|
|
include(${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake)
|
|
|
|
add_headers_and_sources(clickhouse_parsers .)
|
2019-04-24 09:06:28 +00:00
|
|
|
add_library(clickhouse_parsers ${clickhouse_parsers_headers} ${clickhouse_parsers_sources})
|
2018-11-21 19:20:27 +00:00
|
|
|
target_link_libraries(clickhouse_parsers PUBLIC clickhouse_common_io)
|
2017-11-21 19:17:24 +00:00
|
|
|
|
2020-02-24 00:44:38 +00:00
|
|
|
if (USE_DEBUG_HELPERS)
|
2020-04-03 15:14:31 +00:00
|
|
|
set (INCLUDE_DEBUG_HELPERS "-I${ClickHouse_SOURCE_DIR}/base -include ${ClickHouse_SOURCE_DIR}/src/Parsers/iostream_debug_helpers.h")
|
2020-02-24 00:44:38 +00:00
|
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${INCLUDE_DEBUG_HELPERS}")
|
|
|
|
endif ()
|
|
|
|
|
2018-11-21 19:20:27 +00:00
|
|
|
if(ENABLE_TESTS)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|