Initial commit
This commit is contained in:
14
test/CMakeLists.txt
Normal file
14
test/CMakeLists.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
include(${CMAKE_SCRIPTS_DIR}/googletest.cmake)
|
||||
|
||||
add_executable(
|
||||
blank-slate-test
|
||||
test_main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
blank-slate-test
|
||||
gtest_main
|
||||
)
|
||||
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(blank-slate-test)
|
||||
6
test/test_main.cpp
Normal file
6
test/test_main.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(testmain, example)
|
||||
{
|
||||
EXPECT_EQ(42, 7*6);
|
||||
}
|
||||
Reference in New Issue
Block a user