mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
e74acda53e
* Added prql-lib * Add PRQL parser * Extend stateless tests * Add unit tests for `ParserPRQL` --------- Co-authored-by: Ubuntu <ubuntu@ip-172-31-37-24.eu-central-1.compute.internal> Co-authored-by: Ubuntu <ubuntu@ip-10-10-10-195.eu-central-1.compute.internal> Co-authored-by: Александр Нам <47687537+seshWCS@users.noreply.github.com>
33 lines
1.3 KiB
CMake
33 lines
1.3 KiB
CMake
include("${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake")
|
|
|
|
add_headers_and_sources(clickhouse_parsers .)
|
|
add_headers_and_sources(clickhouse_parsers ./Access)
|
|
add_headers_and_sources(clickhouse_parsers ./MySQL)
|
|
add_headers_and_sources(clickhouse_parsers ./Kusto)
|
|
add_headers_and_sources(clickhouse_parsers ./PRQL)
|
|
add_library(clickhouse_parsers ${clickhouse_parsers_headers} ${clickhouse_parsers_sources})
|
|
target_link_libraries(clickhouse_parsers PUBLIC clickhouse_common_io clickhouse_common_access string_utils)
|
|
if (TARGET ch_rust::prql)
|
|
target_link_libraries(clickhouse_parsers PRIVATE ch_rust::prql)
|
|
endif ()
|
|
|
|
if (USE_DEBUG_HELPERS)
|
|
# CMake generator expression will do insane quoting when it encounters special character like quotes, spaces, etc.
|
|
# Prefixing "SHELL:" will force it to use the original text.
|
|
set (INCLUDE_DEBUG_HELPERS "SHELL:-I\"${ClickHouse_SOURCE_DIR}/base\" -include \"${ClickHouse_SOURCE_DIR}/src/Parsers/iostream_debug_helpers.h\"")
|
|
# Use generator expression as we don't want to pollute CMAKE_CXX_FLAGS, which will interfere with CMake check system.
|
|
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:${INCLUDE_DEBUG_HELPERS}>)
|
|
endif ()
|
|
|
|
if(ENABLE_EXAMPLES)
|
|
add_subdirectory(examples)
|
|
endif()
|
|
|
|
if (ENABLE_FUZZING)
|
|
add_subdirectory(fuzzers)
|
|
endif()
|
|
|
|
if (ENABLE_TESTS)
|
|
add_subdirectory(HiliteComparator)
|
|
endif ()
|