Updated test to use gtest instead of Catch2

This commit is contained in:
Alejandro Saucedo 2020-09-04 06:11:35 +01:00
parent 0b35b5e9d6
commit 1286da2179
3 changed files with 11 additions and 6 deletions

View file

@ -1,5 +1,10 @@
find_package(spdlog REQUIRED)
if(KOMPUTE_OPT_ENABLE_SPDLOG)
find_package(spdlog REQUIRED)
find_package(fmt REQUIRED)
endif()
find_package(Vulkan REQUIRED)
# In production builds all shaders are compiled into cpp files
@ -30,6 +35,7 @@ target_link_libraries(
if(KOMPUTE_OPT_ENABLE_SPDLOG)
target_link_libraries(
kompute
fmt::fmt
spdlog::spdlog
)
endif()

View file

@ -1,8 +1,8 @@
#if DEBUG
#if KOMPUTE_SPDLOG_ENABLED
#if KOMPUTE_ENABLE_SPDLOG
// Only enabled if spdlog is enabled
#include <spdlog/fmt/ranges.h>
#include <fmt/ranges.h>
#endif
#endif

View file

@ -16,9 +16,8 @@ target_include_directories(
target_link_libraries(test_kompute PRIVATE
GTest::gtest
GTest::gtest_main
GTest::gmock
GTest::gmock_main)
GTest::gtest_main)
target_link_libraries(test_kompute PRIVATE kompute)
add_test(NAME test_kompute COMMAND test_kompute)