2017-12-11 00:55:03 +01:00
|
|
|
add_library(network STATIC
|
|
|
|
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
|
|
|
|
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)
|