This commit is contained in:
Fabio Bas 2015-10-08 21:33:24 +02:00
parent 3ebe42c400
commit 7fe60279de
7 changed files with 56 additions and 38 deletions

View file

@ -340,12 +340,4 @@ endif()
option(PORTABLE "portable build" OFF)
IF(PORTABLE)
add_definitions(-DPORTABLE_BUILD)
endif()
if(test)
enable_testing()
message(STATUS "Adding tests")
add_executable(cockatrice_test test/dummy_test.cpp)
target_link_libraries(cockatrice_test gtest_main)
add_test(NAME cockatrice_test COMMAND cockatrice_test)
endif()

View file

@ -1,16 +0,0 @@
#include "gtest/gtest.h"
namespace {
class FooTest : public ::testing::Test {
};
TEST(DummyTest, Works) {
ASSERT_EQ(1, 1) << "One is not equal to one";
}
}
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}