2017-12-11 00:55:03 +01:00
|
|
|
add_library(network STATIC
|
2020-08-20 21:54:01 +02:00
|
|
|
announce_multiplayer_session.cpp
|
|
|
|
announce_multiplayer_session.h
|
2017-12-11 00:55:03 +01:00
|
|
|
network.cpp
|
|
|
|
network.h
|
2020-08-20 09:46:35 +02:00
|
|
|
network_settings.cpp
|
|
|
|
network_settings.h
|
2017-12-11 00:55:03 +01:00
|
|
|
packet.cpp
|
|
|
|
packet.h
|
2022-12-17 16:06:38 +01:00
|
|
|
precompiled_headers.h
|
2017-12-11 00:55:03 +01:00
|
|
|
room.cpp
|
|
|
|
room.h
|
|
|
|
room_member.cpp
|
|
|
|
room_member.h
|
2018-10-27 09:35:01 +02:00
|
|
|
verify_user.cpp
|
|
|
|
verify_user.h
|
2017-12-11 00:55:03 +01:00
|
|
|
)
|
2017-07-07 21:34:15 +02:00
|
|
|
|
2017-12-11 00:55:03 +01:00
|
|
|
create_target_directory_groups(network)
|
2017-07-07 21:34:15 +02:00
|
|
|
|
2021-08-20 13:46:35 +02: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()
|
|
|
|
|
2020-03-29 19:56:25 +02:00
|
|
|
target_link_libraries(network PRIVATE common enet Boost::serialization)
|
2022-09-21 18:36:12 +02: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()
|