We are adding unit tests based on Google Test and Google Mock. Add
support for them to CMake.
GTest support is conditional on the BUILD_TESTS option. GTest-based
tests can use the BUILD_TESTS variable to decide if they should be
built or not.
Since tests will be created in other components than framework, move the
BUILD_TESTS option to the top-level CMakeLists.txt. Same for
enable_testing, and make that conditional on BUILD_TESTS as well.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Mario Maz <mmazzapater@gmail.com>
REUSE requires the full license texts to exist in the LICENSES
directory. We have three licenses at the moment:
- BSD-2-Clause-Patent for most of the code;
- ISC for the parts taken from iw;
- MIT for easylogging++.
Replace LICENSE with a symlink to the text in LICENSES. The text in
LICENSES is taken as is from the SPDX definition. It differs only in
whitespace, and in the copyright line itself. Since it's better to use
the literal text from the SPDX definition, move the copyright years to
the AUTHORS.md file. While we're at it, correct those years: the start
year is 2016 for some of the code, and the end year is 2020 now.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>