From 940f6c6f71813b7f6a5d2b46ed293cdd359ed8ea Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 23 Jan 2022 15:11:35 +0000 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ae6b63..67d6217 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,3 +12,17 @@ FetchContent_MakeAvailable(googletest) include_directories(include) add_library(VectorAlgebra STATIC "src/Vector3.cpp" "src/Quaternion.cpp") + +enable_testing() + +add_executable( + hello_test + "src/hello_test.cc" +) +target_link_libraries( + hello_test + gtest_main +) + +include(GoogleTest) +gtest_discover_tests(hello_test)