mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user