Add tests back

This commit is contained in:
McMassiveNZ
2023-05-31 21:23:24 +02:00
parent 799a0f6069
commit 9bcbe577a9
4 changed files with 30 additions and 11 deletions

15
test/CMakeLists.txt Normal file
View File

@@ -0,0 +1,15 @@
include(${CMAKE_SCRIPTS_DIR}/googletest.cmake)
set(current_target starter_window_test)
add_executable(
${current_target}
test_main.cpp
)
target_link_libraries(
${current_target}
gtest_main
)
include(GoogleTest)
gtest_discover_tests(${current_target})

6
test/test_main.cpp Normal file
View File

@@ -0,0 +1,6 @@
#include <gtest/gtest.h>
TEST(testmain, example)
{
EXPECT_EQ(42, 7*6);
}