Skip to content

Simple demo of simdjson as a CMake dependency using ExternalProject_Add

Notifications You must be signed in to change notification settings

simdjson/cmakedemo_externalproject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple demo of simdjson as a CMake dependency using ExternalProject_Add

Ubuntu

This repository is meant to serve as an example of how to use simdjson as a CMake dependency using ExternalProject_Add. It requires CMake 3.16 or better. Though it should work under Linux if you have an up-to-date system, it is untested under different platforms such as Visual Studio.

Usage:

cmake -B build && cmake --build build -v && ./build/src/test

The simple CMake project builds a simple parser (./src/test) which can parse a given JSON document (provided as a command-line parameter) and determine whether it is valid JSON.

A simpler approach is to use simdjson as Git submodule, or just as subdirectory. See cmakedemo.

Please refer to the main simdjson project for further documentation.

FetchContent

We can also do a demo using a single CMakeLists.txt file.

About

Simple demo of simdjson as a CMake dependency using ExternalProject_Add

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published