add new thirdparty, SQLite
This commit is contained in:
parent
1437f163ce
commit
3a53f732aa
10
thirdparty/CMakeLists.txt
vendored
10
thirdparty/CMakeLists.txt
vendored
@ -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
8
thirdparty/sqlite.cmake
vendored
Normal 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
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user