Next: Simple Tests, Previous: Autoconf Macros, Up: Basic Usage [Contents][Index]
The following pkg-config
modules are provided by
MicroBenchmark.
pkg-config
[–cflags|–libs] mbenchmark
pkg-config
[–cflags|–libs] mbenchmark-c++
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