mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:28:03 +02:00
symlink the web directory instead of direct copy for DS
This commit is contained in:
parent
f47cc176b5
commit
13f2ea33ad
1 changed files with 26 additions and 8 deletions
|
@ -3,14 +3,32 @@ set(TARGET_NAME domain-server)
|
||||||
# setup the project and link required Qt modules
|
# setup the project and link required Qt modules
|
||||||
setup_hifi_project(Network)
|
setup_hifi_project(Network)
|
||||||
|
|
||||||
# remove and then copy the files for the webserver
|
# remove current resources dir
|
||||||
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
add_custom_command(
|
||||||
COMMAND "${CMAKE_COMMAND}" -E remove_directory
|
TARGET ${TARGET_NAME} POST_BUILD
|
||||||
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources)
|
COMMAND "${CMAKE_COMMAND}" -E remove_directory
|
||||||
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources
|
||||||
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
)
|
||||||
"${PROJECT_SOURCE_DIR}/resources"
|
# copy all files in resources, including web
|
||||||
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources)
|
add_custom_command(
|
||||||
|
TARGET ${TARGET_NAME} POST_BUILD
|
||||||
|
COMMAND "${CMAKE_COMMAND}" -E copy_directory
|
||||||
|
"${PROJECT_SOURCE_DIR}/resources"
|
||||||
|
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources
|
||||||
|
)
|
||||||
|
# remove the web directory so we can make it a symlink
|
||||||
|
add_custom_command(
|
||||||
|
TARGET ${TARGET_NAME} POST_BUILD
|
||||||
|
COMMAND "${CMAKE_COMMAND}" -E remove_directory
|
||||||
|
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources/web
|
||||||
|
)
|
||||||
|
# make the web directory a symlink
|
||||||
|
add_custom_command(
|
||||||
|
TARGET ${TARGET_NAME} POST_BUILD
|
||||||
|
COMMAND "${CMAKE_COMMAND}" -E create_symlink
|
||||||
|
"${PROJECT_SOURCE_DIR}/resources/web"
|
||||||
|
$<TARGET_FILE_DIR:${TARGET_NAME}>/resources/web
|
||||||
|
)
|
||||||
|
|
||||||
# link the shared hifi libraries
|
# link the shared hifi libraries
|
||||||
link_hifi_libraries(embedded-webserver networking shared)
|
link_hifi_libraries(embedded-webserver networking shared)
|
||||||
|
|
Loading…
Reference in a new issue