add new thirdparty, SQLite

This commit is contained in:
falsycat 2023-08-27 22:45:51 +09:00
parent 1437f163ce
commit 3a53f732aa
2 changed files with 18 additions and 0 deletions

View File

@ -20,6 +20,16 @@ FetchContent_Declare(
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest) 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) # ---- uvw (MIT)
FetchContent_Declare( FetchContent_Declare(
uvw uvw

8
thirdparty/sqlite.cmake vendored Normal file
View File

@ -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
)