mirror of
https://gitlab.com/prpl-foundation/prplmesh/prplMesh.git
synced 2025-12-20 01:21:22 +08:00
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>