diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index 5f7aa4c..38194a2 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -20,6 +20,16 @@ FetchContent_Declare( set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) +# ---- SQLite (public domain) +FetchContent_Declare( + sqlite + URL https://www.sqlite.org/2023/sqlite-amalgamation-3430000.zip + URL_HASH SHA256=bb5849ae4d7129c09d20596379a0b3f7b1ac59cf9998eba5ef283ea9b6c000a5 + DOWNLOAD_EXTRACT_TIMESTAMP ON +) +FetchContent_Populate(sqlite) +include(sqlite.cmake) + # ---- uvw (MIT) FetchContent_Declare( uvw diff --git a/thirdparty/sqlite.cmake b/thirdparty/sqlite.cmake new file mode 100644 index 0000000..95120d9 --- /dev/null +++ b/thirdparty/sqlite.cmake @@ -0,0 +1,8 @@ +add_library(sqlite) +target_sources(sqlite + PRIVATE + ${sqlite_SOURCE_DIR}/sqlite3.c + PUBLIC + ${sqlite_SOURCE_DIR}/sqlite3.h + ${sqlite_SOURCE_DIR}/sqlite3ext.h +)