added tests, expanding solution algorithm

This commit is contained in:
Daniel Ledda
2022-12-04 22:18:53 +01:00
parent 58c2b0a720
commit bd52c9a93f
5 changed files with 162 additions and 27 deletions

View File

@@ -13,3 +13,26 @@ add_executable(somaesque
)
#target_link_libraries(somaesque glfw GL X11 pthread Xrandr dl SDL2 glm::glm)
#target_include_directories(somaesque PRIVATE src/KHR src/glad)
# TESTING
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
)
FetchContent_MakeAvailable(googletest)
enable_testing()
add_executable(tests
tests.cpp
VoxelSpace.cpp
VoxelSpace.h
)
target_link_libraries(
tests
GTest::gtest_main
)
include(GoogleTest)
gtest_discover_tests(tests)