2024-02-10 23:56:02 +02:00
|
|
|
set(serverapp_SRCS
|
2024-02-10 19:57:23 +02:00
|
|
|
StdInc.cpp
|
|
|
|
EntryPoint.cpp
|
|
|
|
)
|
|
|
|
|
2024-02-10 23:56:02 +02:00
|
|
|
set(serverapp_HEADERS
|
2024-02-10 19:57:23 +02:00
|
|
|
StdInc.h
|
|
|
|
)
|
|
|
|
|
2024-02-10 23:56:02 +02:00
|
|
|
assign_source_group(${serverapp_SRCS} ${serverapp_HEADERS})
|
|
|
|
add_executable(vcmiserver ${serverapp_SRCS} ${serverapp_HEADERS})
|
|
|
|
set(serverapp_LIBS vcmi)
|
2024-02-10 19:57:23 +02:00
|
|
|
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES FreeBSD OR HAIKU)
|
2024-02-10 23:56:02 +02:00
|
|
|
set(serverapp_LIBS execinfo ${serverapp_LIBS})
|
2024-02-10 19:57:23 +02:00
|
|
|
endif()
|
2024-02-10 23:56:02 +02:00
|
|
|
target_link_libraries(vcmiserver PRIVATE ${serverapp_LIBS} minizip::minizip vcmiservercommon)
|
2024-02-10 19:57:23 +02:00
|
|
|
|
|
|
|
target_include_directories(vcmiserver
|
|
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
set_target_properties(vcmiserver
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME "VCMI_server"
|
|
|
|
PROJECT_LABEL "VCMI_server"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcmi_set_output_dir(vcmiserver "")
|
|
|
|
enable_pch(vcmiserver)
|
|
|
|
|
|
|
|
install(TARGETS vcmiserver DESTINATION ${BIN_DIR})
|