CMakeLists.txt 765 B

123456789101112131415161718192021222324252627282930
  1. # SPDX-FileCopyrightText: 2022 yuzu Emulator Project
  2. # SPDX-License-Identifier: GPL-3.0-or-later
  3. add_library(network STATIC
  4. announce_multiplayer_session.cpp
  5. announce_multiplayer_session.h
  6. network.cpp
  7. network.h
  8. packet.cpp
  9. packet.h
  10. precompiled_headers.h
  11. room.cpp
  12. room.h
  13. room_member.cpp
  14. room_member.h
  15. verify_user.cpp
  16. verify_user.h
  17. )
  18. create_target_directory_groups(network)
  19. target_link_libraries(network PRIVATE common enet::enet Boost::headers)
  20. if (ENABLE_WEB_SERVICE)
  21. target_compile_definitions(network PRIVATE -DENABLE_WEB_SERVICE)
  22. target_link_libraries(network PRIVATE web_service)
  23. endif()
  24. if (YUZU_USE_PRECOMPILED_HEADERS)
  25. target_precompile_headers(network PRIVATE precompiled_headers.h)
  26. endif()