objectbox-c icon indicating copy to clipboard operation
objectbox-c copied to clipboard

compile ObjectBox without examples

Open LIJOIGNATIUS opened this issue 2 years ago • 3 comments

I'm looking to compile ObjectBox without including the examples and test apps. Essentially, I want to keep only the ObjectBox library in my environment.

It would be great if you could consider adding an option to remove examples when using the FetchContent_MakeAvailable command.

This way, users would have the flexibility to exclude example programs from the build process, reducing unnecessary build time and keeping the project clean and concise

LIJOIGNATIUS avatar Aug 02 '23 07:08 LIJOIGNATIUS

Isn't this exactly what https://cpp.objectbox.io/installation describes? Let us know if we can improve the docs...

greenrobot avatar Aug 02 '23 13:08 greenrobot

I apologize for the late response. I had a tight schedule and I just got a chance to check the thread.

Following the instructions, CMake will fetch the objectbox-c repository from GitHub. This includes the example programs, which I don't want to run. To avoid this, I need to manually remove or comment out the example directory in the CMakeLists.txt file.

LIJOIGNATIUS avatar Sep 13 '23 12:09 LIJOIGNATIUS

opened PR #37 to address this issue, as it was preventing compilation in a project for me

gf3 avatar Dec 01 '23 03:12 gf3