mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
test(game): add test cases for Card
This commit is contained in:
19
test/CMakeLists.txt
Normal file
19
test/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 4.0)
|
||||
find_package(GTest REQUIRED)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 26)
|
||||
|
||||
project(uno-game-test)
|
||||
|
||||
add_executable(uno-game-test unit/game/CardTest.cpp)
|
||||
|
||||
target_link_libraries(uno-game-test
|
||||
PUBLIC uno-game-lib
|
||||
)
|
||||
target_link_libraries(uno-game-test
|
||||
PRIVATE GTest::gtest
|
||||
PRIVATE GTest::gtest_main
|
||||
)
|
||||
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(uno-game-test)
|
||||
Reference in New Issue
Block a user