Forked from
Brandon Lai-Cheong / unionized-triangles-2
56 commits behind the upstream repository.
-
Brandon Lai-Cheong authoredBrandon Lai-Cheong authored
CMakeLists.txt 710 B
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/unit_tests/simple_triangle_tests.cpp
src/intersections/intersections.cpp
src/shapes/triangle.cpp
src/shapes/triangle_edges.cpp
)
include_directories(src)
target_link_libraries(
tests
GTest::gtest_main
)
include(GoogleTest)
gtest_discover_tests(tests)