mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 10:23:16 +08:00
23 lines
465 B
CMake
23 lines
465 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
|
|
)
|
|
|
|
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)
|