mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
- Added new unit tests in `GameStateTest.cpp` to validate `ClientGameState` and `ServerGameState` behavior. - Updated `CMakeLists.txt` to include the new test file.
24 lines
501 B
CMake
24 lines
501 B
CMake
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
|
|
unit/game/CardTileTest.cpp
|
|
unit/game/PlayerTest.cpp
|
|
unit/game/GameStateTest.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)
|