mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
f907b5c597
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
15 lines
395 B
CMake
15 lines
395 B
CMake
option(ENABLE_SQLITE "Enable sqlite" ${ENABLE_LIBRARIES})
|
|
|
|
if (NOT ENABLE_SQLITE)
|
|
message(STATUS "Not using sqlite")
|
|
return()
|
|
endif()
|
|
|
|
set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/sqlite-amalgamation")
|
|
|
|
set(SRCS ${LIBRARY_DIR}/sqlite3.c)
|
|
|
|
add_library(_sqlite ${SRCS})
|
|
target_include_directories(_sqlite SYSTEM PUBLIC "${LIBRARY_DIR}")
|
|
add_library(ch_contrib::sqlite ALIAS _sqlite)
|