mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
27 lines
943 B
CMake
27 lines
943 B
CMake
set(TARGET_NAME domain-server)
|
|
|
|
setup_hifi_project(${TARGET_NAME} TRUE)
|
|
|
|
# remove and then copy the files for the webserver
|
|
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
|
COMMAND "${CMAKE_COMMAND}" -E remove_directory
|
|
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources/web)
|
|
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
|
"${PROJECT_SOURCE_DIR}/resources/web"
|
|
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources/web)
|
|
|
|
# link the shared hifi library
|
|
link_hifi_libraries(${TARGET_NAME} embedded-webserver networking shared)
|
|
|
|
IF (WIN32)
|
|
target_link_libraries(${TARGET_NAME} Winmm Ws2_32)
|
|
ENDIF(WIN32)
|
|
|
|
# add a definition for ssize_t so that windows doesn't bail
|
|
if (WIN32)
|
|
add_definitions(-Dssize_t=long)
|
|
endif ()
|
|
|
|
find_package(Qt5 COMPONENTS Network Widgets)
|
|
target_link_libraries(${TARGET_NAME} Qt5::Network)
|