fixed deploy service additional data for debug target

This commit is contained in:
vladimir.kuznetsov 2022-12-26 17:15:45 +03:00
parent 911e65af55
commit 64317ffef5
2 changed files with 20 additions and 10 deletions

View file

@ -97,9 +97,19 @@ if(NOT IOS)
endif()
# deploy artifacts required to run the application to the debug build folder
if(LINUX)
set(DEPLOY_ARTIFACT_PATH "linux/service")
if(WIN32)
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "8")
set(DEPLOY_ARTIFACT_PATH "windows/x64")
else()
set(DEPLOY_ARTIFACT_PATH "windows/x32")
endif()
elseif(LINUX)
set(DEPLOY_ARTIFACT_PATH "linux/serivce")
elseif(APPLE AND NOT IOS)
set(DEPLOY_ARTIFACT_PATH "macos")
endif()
if(NOT IOS AND NOT ANDROID)
add_custom_command(
TARGET ${PROJECT} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E $<IF:$<CONFIG:Debug>,copy_directory,true>