From 9c868601591b60cf066eb576e85b0dbf4e1fd7ae Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 25 Jun 2022 16:20:51 +0200 Subject: test: replace gtest with Catch2 & Trompeloeil --- test/CMakeLists.txt | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0c74bf2..8a92723 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,7 +1,5 @@ project(tests CXX) -enable_testing() - file(GLOB SOURCES cell_helper_test.cpp ${CMAKE_SOURCE_DIR}/src/game/cell_helper.cpp @@ -18,14 +16,14 @@ target_compile_options( PRIVATE -Wall -Wextra -Wpedantic -Wshadow -Wold-style-cast -Wcast-align -Wno-unused - -Wconversion -Wcast-qual -Wctor-dtor-privacy + -Wconversion -Wcast-qual -Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-declarations -Wmissing-include-dirs -Woverloaded-virtual -Wredundant-decls -Wsign-conversion -Wsign-promo -Wstrict-overflow=5 -Wswitch-default -Wundef -Werror - -pedantic -fsanitize=address -fno-exceptions + -pedantic -fsanitize=address ) target_include_directories( @@ -38,12 +36,10 @@ target_link_options(${PROJECT_NAME} PRIVATE -fsanitize=address) target_link_libraries( ${PROJECT_NAME} + PRIVATE GSL yacppdic - gtest_main - gmock + Catch2::Catch2WithMain + trompeloeil ) -include(GoogleTest) - -gtest_discover_tests(${PROJECT_NAME}) -- cgit v1.2.3-18-g5258