Skip to content
Snippets Groups Projects
Commit cbca2fb8 authored by Brandon Lai-Cheong's avatar Brandon Lai-Cheong
Browse files

setup cmake

parent 9df91bb9
No related branches found
No related tags found
No related merge requests found
build
\ No newline at end of file
cmake_minimum_required(VERSION 3.12)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
set(CMAKE_BUILD_TYPE Debug)
enable_testing()
project(intersection)
add_executable(
tests
tests/simple_triangle_tests.cpp
)
target_link_libraries(
tests
GTest::gtest_main
)
include(GoogleTest)
gtest_discover_tests(tests)
File moved
File moved
#include "gtest/gtest.h"
TEST (TriangleIntersectionTests, TriangleIntersection) {
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment