ClickHouse/contrib/sqlite-cmake/CMakeLists.txt
2022-01-20 10:01:58 +03:00

15 lines
392 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)