[c++] cpp快速添加sqlite_orm

[c++] cpp快速添加sqlite_orm

1. 下载sqlite amalgamation和sqlite_orm

sh 复制代码
# https://sqlite.org/download.html
# https://github.com/fnc12/sqlite_orm/releases/tag/v1.9.1

2. 在sqlite amalgamation中添加CMakeLists.txt

cmake 复制代码
cmake_minimum_required(VERSION 3.14)
project(SQLite3 C)

add_library(SQLite3 STATIC sqlite3.c)
target_include_directories(SQLite3 PUBLIC ${CMAKE_CURRENT_LIST_DIR})
target_compile_definitions(SQLite3 PUBLIC SQLITE_THREADSAFE=1)

引入sqlite和sqlite_orm

cmake 复制代码
add_subdirectory(third_party/sqlite-amalgamation-3510100)
add_subdirectory(third_party/sqlite_orm-1.9.1)
相关推荐
端平入洛1 天前
auto有时不auto
c++
哇哈哈20212 天前
信号量和信号
linux·c++
多恩Stone2 天前
【C++入门扫盲1】C++ 与 Python:类型、编译器/解释器与 CPU 的关系
开发语言·c++·人工智能·python·算法·3d·aigc
百锦再2 天前
Django实现接口token检测的实现方案
数据库·python·django·sqlite·flask·fastapi·pip
蜡笔小马2 天前
21.Boost.Geometry disjoint、distance、envelope、equals、expand和for_each算法接口详解
c++·算法·boost
超级大福宝2 天前
N皇后问题:经典回溯算法的一些分析
数据结构·c++·算法·leetcode
weiabc2 天前
printf(“%lf“, ys) 和 cout << ys 输出的浮点数格式存在细微差异
数据结构·c++·算法
问好眼2 天前
《算法竞赛进阶指南》0x01 位运算-3.64位整数乘法
c++·算法·位运算·信息学奥赛
yyjtx2 天前
DHU上机打卡D31
开发语言·c++·算法
czxyvX2 天前
020-C++之unordered容器
数据结构·c++