5

Boost library is full of examples and tests and I would like to build them using bjam if possible.

How do I build boost examples with bjam?

PS. I wasn't able to locate proper documentation for this option.

bogdan
  • 9,056
  • 10
  • 37
  • 42

1 Answers1

4

It depends on the library. Most of them run the examples from the test directory. Others from the example directory.

Go to the lib test or example directory where there is a Jamfile and do just

bjam
Vicente Botet Escriba
  • 4,305
  • 1
  • 25
  • 39
  • This would require to copy bjam from boost root. is it possible to call bjam from there for *all* boost libraries? – bogdan Apr 28 '10 at 15:13
  • Once you have installed bjam, you can call bjam from any directory with a Jamfile. There are others ways, but this is the easy way. – Vicente Botet Escriba Apr 28 '10 at 15:45
  • There's no standard way to build examples for all libraries. In fact, that does not seem too useful -- given that example is something you'd have to manually play with anyway. On Linux, typing `bjam libs/*/example` from the root *might* work. – Vladimir Prus May 03 '10 at 00:50