mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
4271fb3c95
Support for: - listing of active players - listing of active rooms - joining and leaving rooms - placeholder support for multiple chat rooms - proxy connections - invites into private rooms (only lobby server side for now, client and match server need work)
46 lines
898 B
CMake
46 lines
898 B
CMake
set(lobby_SRCS
|
|
StdInc.cpp
|
|
|
|
EntryPoint.cpp
|
|
LobbyDatabase.cpp
|
|
LobbyServer.cpp
|
|
SQLiteConnection.cpp
|
|
)
|
|
|
|
set(lobby_HEADERS
|
|
StdInc.h
|
|
|
|
LobbyDatabase.h
|
|
LobbyDefines.h
|
|
LobbyServer.h
|
|
SQLiteConnection.h
|
|
)
|
|
|
|
assign_source_group(${lobby_SRCS} ${lobby_HEADERS})
|
|
|
|
add_executable(vcmilobby ${lobby_SRCS} ${lobby_HEADERS})
|
|
set(lobby_LIBS vcmi)
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES FreeBSD OR HAIKU)
|
|
set(lobby_LIBS execinfo ${lobby_LIBS})
|
|
endif()
|
|
|
|
target_link_libraries(vcmilobby PRIVATE ${lobby_LIBS} ${SQLite3_LIBRARIES})
|
|
|
|
target_include_directories(vcmilobby PRIVATE ${SQLite3_INCLUDE_DIRS})
|
|
target_include_directories(vcmilobby PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
if(WIN32)
|
|
set_target_properties(vcmilobby
|
|
PROPERTIES
|
|
OUTPUT_NAME "VCMI_lobby"
|
|
PROJECT_LABEL "VCMI_lobby"
|
|
)
|
|
endif()
|
|
|
|
vcmi_set_output_dir(vcmilobby "")
|
|
enable_pch(vcmilobby)
|
|
|
|
install(TARGETS vcmilobby DESTINATION ${BIN_DIR})
|
|
|