objectbox / objectbox-c

C and C++ database for objects and structs
https://objectbox.io/
Apache License 2.0
211 stars 37 forks source link

feat(build): add cache var to disable examples #37

Open gf3 opened 12 months ago

gf3 commented 12 months ago

Add OBX_DISABLE_EXAMPLES with a default value of OFF to control including the examples directory in the default build.

Example

You can disable including/building the examples by setting the cache variable OBX_DISABLE_EXAMPLES to ON:

-DOBX_DISABLE_EXAMPLES=ON

E.g. in KDevelop project CMake configuration:

KDevelop project CMake settings

Closes #33