ClickHouse/contrib/sqlite-cmake/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
395 B
CMake
Raw Normal View History

2022-01-17 20:53:49 +00:00
option(ENABLE_SQLITE "Enable sqlite" ${ENABLE_LIBRARIES})
if (NOT ENABLE_SQLITE)
message(STATUS "Not using sqlite")
return()
endif()
2021-07-07 20:06:35 +00:00
set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/sqlite-amalgamation")
2021-05-17 11:02:35 +00:00
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)