asg017 / sqlite-vec

A vector search SQLite extension that runs anywhere!
Apache License 2.0
4.24k stars 134 forks source link

Building in Windows, missing CMakeLists.txt #111

Open jluisreymejias opened 2 months ago

jluisreymejias commented 2 months ago

Hello, Is there any available CMakeLists.txt or instructions to build in Windows with Visual Studio ?

By the way, really nice extension,

hasaranga commented 1 month ago

add sqlite3.h, sqlite3.c, sqlite3ext.h, sqlite-vec.h, sqlite-vec.c files into the project.

then use following code in your source file.

#ifndef SQLITE_CORE
#define SQLITE_CORE
#endif

#ifndef SQLITE_VEC_STATIC
#define SQLITE_VEC_STATIC
#endif

#ifndef SQLITE_VEC_ENABLE_AVX
#define SQLITE_VEC_ENABLE_AVX
#endif

#include "sqlite-vec/sqlite3.h"
#include "sqlite-vec/sqlite-vec.h"

check examples/simple-c/demo.c