njlr / buck-cpp-example

A simple example of how to organize a C/C++ project that uses Buck build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A simple example of how to organize a C/C++ project that uses Buck build

License:MIT License


Languages

Language:Python 92.3%Language:C++ 7.7%