Template
Add unit testing back
This commit is contained in:
1 parent
3d61cd1a26
commit
dd43799890
4 files changed
+29
-11
No files matched your search
@@ -0,0 +1,15 @@
|
||||
include(${CMAKE_SCRIPTS_DIR}/googletest.cmake)
|
||||
set(current_target opengl-starter-test)
|
||||
|
||||
add_executable(
|
||||
${current_target}
|
||||
test_main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
${current_target}
|
||||
gtest_main
|
||||
)
|
||||
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(${current_target})
|
||||
@@ -0,0 +1,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(testmain, example)
|
||||
{
|
||||
EXPECT_EQ(42, 7*6);
|
||||
}
|
||||
Reference in new issue
Block a user