Sqlitecpp Build Cmake
Developmentsqlitecpp-build-cmakeSqlitecpp Build Cmake is an Agent Skill for development published in the SRombauts/SQLiteCpp repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Build SQLiteCpp with CMake. Use for CMake builds, tests, options, or build scripts.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/SRombauts/SQLiteCpp/blob/HEAD/.claude/skills/sqlitecpp-build-cmake/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/sqlitecpp-build-cmake, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
SQLiteCpp CMake Build
Quick builds
- Windows (VS 2026):
mkdir buildcd buildcmake -G "Visual Studio 18 2026" -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_BUILD_EXAMPLES=ON ..cmake --build . --config Release
- Unix/macOS:
mkdir build && cd buildcmake -DCMAKE_BUILD_TYPE=Debug -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_BUILD_EXAMPLES=ON ..cmake --build .
Build scripts
build.bat(Windows) enables shared libs, tests, examples, and runsctest.build.sh(Unix) enables ASAN, shared libs, tests, examples, and runsctest.
Common options
SQLITECPP_BUILD_TESTS(OFF): build unit tests.SQLITECPP_BUILD_EXAMPLES(OFF): build examples.BUILD_SHARED_LIBS(OFF): build shared libs (DLLs).SQLITECPP_INTERNAL_SQLITE(ON): use bundled sqlite3 source.SQLITE_ENABLE_COLUMN_METADATA(ON): enablegetColumnOriginName().SQLITECPP_RUN_CPPLINT(ON): run cpplint target.SQLITECPP_RUN_CPPCHECK(ON): run cppcheck target.SQLITECPP_RUN_DOXYGEN(OFF): generate docs.SQLITECPP_USE_ASAN(OFF): address sanitizer.SQLITECPP_USE_GCOV(OFF): GCov coverage.SQLITECPP_DISABLE_STD_FILESYSTEM(OFF): disable std::filesystem support.SQLITECPP_DISABLE_EXPANDED_SQL(OFF): disable sqlite3_expanded_sql support.
Tests
ctest --output-on-failurectest --output-on-failure -Vctest --output-on-failure -R "Database"
Notes
- Tests can use a system
GTest; otherwise they fall back to thegoogletestsubmodule. - If the submodule is needed:
git submodule update --init --recursive.