Criterion/doc/setup.rst

43 lines
895 B
ReStructuredText
Raw Permalink Normal View History

Setup
=====
Prerequisites
-------------
2015-09-07 11:00:52 +02:00
The library is supported on Linux, OS X, FreeBSD, and Windows.
2015-09-07 11:00:52 +02:00
The following compilers are supported to compile both the library and the tests:
* GCC 4.9+
* Clang 3.4+
* MSVC 14+ (Included in Visual Studio 2015 or later)
2015-09-07 11:00:52 +02:00
Building from source
--------------------
2015-09-07 11:00:52 +02:00
.. code-block:: bash
$ mkdir build
$ cd build
$ cmake ..
$ cmake --build .
Installing the library and language files (Linux, OS X, FreeBSD)
----------------------------------------------------------------
From the build directory created above, run with an elevated shell:
.. code-block:: bash
2015-09-07 11:00:52 +02:00
$ make install
Usage
-----
2015-09-07 11:00:52 +02:00
To compile your tests with Criterion, you need to make sure to:
2015-09-07 11:00:52 +02:00
1. Add the include directory to the header search path
2. Install the library to your library search path
3. Link Criterion to your executable.
2015-09-07 11:00:52 +02:00
This should be all you need.