From 5a3a3da49766ef2bfee416f7fe6e497d0e93e8e1 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 23 Jan 2022 15:04:28 +0000 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d6e15ad..9ae6b63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,14 @@ cmake_minimum_required(VERSION 3.13) # CMake version check project(VectorAlgebra) # Create project "simple_example" -set(CMAKE_CXX_STANDARD 14) # Enable c++14 standard + +set(CMAKE_CXX_STANDARD 11) # Enable c++14 standard + +include(FetchContent) +FetchContent_Declare( + googletest + URL https://github.com/google/googletest/archive/refs/heads/main.zip +) +FetchContent_MakeAvailable(googletest) include_directories(include) -add_library(VectorAlgebra STATIC "src/Vector3.cpp" "src/Quaternion.cpp") \ No newline at end of file +add_library(VectorAlgebra STATIC "src/Vector3.cpp" "src/Quaternion.cpp")