Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 623 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 623 Bytes

buck-cpp-example

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 computes 3 + 4 and prints the result.
  • mathutils - A library that provides an add function.

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! 🙌