mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
- Changed `uno-game-lib` dependencies to `PUBLIC` visibility for `ftxui` components, `nlohmann_json`, and `asio`. - Modified `uno-game-test` to use `PRIVATE` visibility for `uno-game-lib`.
28 lines
643 B
CMake
28 lines
643 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
|
|
unit/network/MessageSerializerTest.cpp
|
|
unit/network/NetworkServerTest.cpp
|
|
unit/network/NetworkClientTest.cpp
|
|
)
|
|
|
|
target_link_libraries(uno-game-test
|
|
PRIVATE uno-game-lib
|
|
)
|
|
target_link_libraries(uno-game-test
|
|
PRIVATE GTest::gtest
|
|
PRIVATE GTest::gtest_main
|
|
)
|
|
|
|
include(GoogleTest)
|
|
gtest_discover_tests(uno-game-test)
|