Next: , Previous: , Up: Basic Usage   [Contents][Index]


1.4.2 Other Build Systems

The following pkg-config modules are provided by MicroBenchmark.

For example, to compile a benchmark executable from a source file test.c (or test.cpp) using pkg-config, you could use the following command line:

$ gcc $(pkg-config --cflags --ldflags mbenchmark) -o test test.c
# Or for C++
$ g++ $(pkg-config --cflags --ldflags mbenchmark-c++) -o test-c++ test.cpp