2023-11-11 16:43:58 +02:00
|
|
|
set(lobby_SRCS
|
|
|
|
StdInc.cpp
|
2023-12-29 13:09:56 +02:00
|
|
|
|
|
|
|
EntryPoint.cpp
|
|
|
|
LobbyDatabase.cpp
|
2023-11-11 16:43:58 +02:00
|
|
|
LobbyServer.cpp
|
|
|
|
SQLiteConnection.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(lobby_HEADERS
|
|
|
|
StdInc.h
|
2023-12-29 13:09:56 +02:00
|
|
|
|
|
|
|
LobbyDatabase.h
|
2023-12-30 00:41:16 +02:00
|
|
|
LobbyDefines.h
|
2023-11-11 16:43:58 +02:00
|
|
|
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})
|
|
|
|
|