2017-12-10 18:55:03 -05:00
|
|
|
add_library(network STATIC
|
2020-08-20 16:54:01 -03:00
|
|
|
announce_multiplayer_session.cpp
|
|
|
|
announce_multiplayer_session.h
|
2017-12-10 18:55:03 -05:00
|
|
|
network.cpp
|
|
|
|
network.h
|
2020-08-20 04:46:35 -03:00
|
|
|
network_settings.cpp
|
|
|
|
network_settings.h
|
2017-12-10 18:55:03 -05:00
|
|
|
packet.cpp
|
|
|
|
packet.h
|
2022-12-17 16:06:38 +01:00
|
|
|
precompiled_headers.h
|
2017-12-10 18:55:03 -05:00
|
|
|
room.cpp
|
|
|
|
room.h
|
|
|
|
room_member.cpp
|
|
|
|
room_member.h
|
2018-10-27 15:35:01 +08:00
|
|
|
verify_user.cpp
|
|
|
|
verify_user.h
|
2017-12-10 18:55:03 -05:00
|
|
|
)
|
2017-07-07 21:34:15 +02:00
|
|
|
|
2017-12-10 18:55:03 -05:00
|
|
|
create_target_directory_groups(network)
|
2017-07-07 21:34:15 +02:00
|
|
|
|
2021-08-20 05:46:35 -06:00
|
|
|
if (ENABLE_WEB_SERVICE)
|
|
|
|
target_compile_definitions(network PRIVATE -DENABLE_WEB_SERVICE -DCPPHTTPLIB_OPENSSL_SUPPORT)
|
|
|
|
target_link_libraries(network PRIVATE web_service httplib)
|
|
|
|
if (ANDROID)
|
|
|
|
target_link_libraries(network PRIVATE ifaddrs)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2023-04-28 13:02:53 -07:00
|
|
|
target_link_libraries(network PRIVATE citra_common enet Boost::serialization)
|
2022-09-21 19:36:12 +03:00
|
|
|
set_target_properties(network PROPERTIES INTERPROCEDURAL_OPTIMIZATION ${ENABLE_LTO})
|
2022-12-17 16:06:38 +01:00
|
|
|
|
|
|
|
if (CITRA_USE_PRECOMPILED_HEADERS)
|
|
|
|
target_precompile_headers(network PRIVATE precompiled_headers.h)
|
|
|
|
endif()
|