OCT 1. 更新打包中服务路径

This commit is contained in:
黄昕 2022-12-23 18:30:29 +08:00
parent a0cefa14ba
commit b715547824
1 changed files with 2 additions and 3 deletions

View File

@ -76,11 +76,10 @@ ADD_CUSTOM_COMMAND(TARGET ${PROJECT_TARGET}
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${PROJECT_SOURCE_DIR}/../config/banner.txt" "${CMAKE_CURRENT_BINARY_DIR}/config/") COMMAND ${CMAKE_COMMAND} -E copy_if_different "${PROJECT_SOURCE_DIR}/../config/banner.txt" "${CMAKE_CURRENT_BINARY_DIR}/config/")
SET(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install/") SET(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install/")
install(FILES ../config/vcpe.cfg ../config/vcpe.service ../config/banner.txt ../config/zlog.conf INSTALL(FILES ../config/vcpe.cfg ../config/vcpe.service ../config/banner.txt ../config/zlog.conf
DESTINATION config) DESTINATION config)
INSTALL(TARGETS ${PROJECT_TARGET} INSTALL(TARGETS ${PROJECT_TARGET}
RUNTIME PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE RUNTIME DESTINATION ./)
RUNTIME DESTINATION bin)
SET(CPACK_GENERATOR "TGZ") SET(CPACK_GENERATOR "TGZ")
IF ("${VERSION_GIT_HASH_SHORT}" STREQUAL "") IF ("${VERSION_GIT_HASH_SHORT}" STREQUAL "")