ClickHouse/src/Parsers/CMakeLists.txt

21 lines
774 B
CMake
Raw Normal View History

include("${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake")
2017-11-21 19:17:24 +00:00
add_headers_and_sources(clickhouse_parsers .)
add_headers_and_sources(clickhouse_parsers ./Access)
add_headers_and_sources(clickhouse_parsers ./MySQL)
add_library(clickhouse_parsers ${clickhouse_parsers_headers} ${clickhouse_parsers_sources})
target_link_libraries(clickhouse_parsers PUBLIC clickhouse_common_io clickhouse_common_access)
2017-11-21 19:17:24 +00:00
if (USE_DEBUG_HELPERS)
set (INCLUDE_DEBUG_HELPERS "-I\"${ClickHouse_SOURCE_DIR}/base\" -include \"${ClickHouse_SOURCE_DIR}/src/Parsers/iostream_debug_helpers.h\"")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${INCLUDE_DEBUG_HELPERS}")
endif ()
2021-04-26 22:51:42 +00:00
if(ENABLE_EXAMPLES)
add_subdirectory(examples)
endif()
2021-08-21 02:27:27 +00:00
if (ENABLE_FUZZING)
add_subdirectory(fuzzers)
endif()