chore: update CMake library visibility for dependencies

- 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`.
This commit is contained in:
Kieran Kihn
2025-12-02 12:31:01 +08:00
parent 0d5a187cba
commit 5f3a4083fd
2 changed files with 6 additions and 6 deletions

View File

@@ -32,15 +32,15 @@ add_library(uno-game-lib
src/server/UnoServer.cpp
)
target_link_libraries(uno-game-lib
PRIVATE ftxui::screen
PRIVATE ftxui::dom
PRIVATE ftxui::component
PUBLIC ftxui::screen
PUBLIC ftxui::dom
PUBLIC ftxui::component
)
target_link_libraries(uno-game-lib
PRIVATE nlohmann_json::nlohmann_json
PUBLIC nlohmann_json::nlohmann_json
)
target_link_libraries(uno-game-lib
PRIVATE asio::asio
PUBLIC asio::asio
)
add_executable(uno-client src/client/main.cpp)

View File

@@ -16,7 +16,7 @@ add_executable(uno-game-test
)
target_link_libraries(uno-game-test
PUBLIC uno-game-lib
PRIVATE uno-game-lib
)
target_link_libraries(uno-game-test
PRIVATE GTest::gtest