A simple example of how to organize a C/C++ project that uses Buck build.
This example was written as part of an article.
The project consists of two parts:
demo- An executable that computes3 + 4and prints the result.mathutils- A library that provides anaddfunction.
This is a contrived example! Buck is capable of building complex projects.
To run the demo:
buck run :demo
To run the tests:
buck test //...
That's it! 🙌