objectbox / objectbox-c

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

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

Open gf3 opened 7 months ago

gf3 commented 7 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