(CMake) Add a new CMake option to enable the new Unit Tests

This commit is contained in:
Luis Díaz Más
2017-10-08 21:02:14 +02:00
committed by Luis Diaz Mas
parent 89629f0056
commit 26189ad287
6 changed files with 44 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#include <gtest/gtest.h>
#include <iostream>
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
int ret = RUN_ALL_TESTS();
std::cout << "Tests finished with return value: " << ret << std::endl;
return EXIT_SUCCESS;
}