chore: update the file of project

This commit is contained in:
Qsaker 2023-12-09 17:08:58 +08:00
parent c3c500e16a
commit 06f1fe7f09

View File

@ -1,11 +1,14 @@
option(SAK_ENABLE_LINUXDEPLOYQT "Enable linuxdeployqt" OFF)
option(SAK_ENABLE_LINUXDEPLOYQT "Enable linuxdeployqt" OFF)
option(SAK_ENABLE_LINUXDEPLOYQT_DOWNLOAD "Enable linuxdeployqt download" OFF)
option(SAK_ENABLE_LINUXDEPLOYQT_SYS "Enable linuxdeployqt with system tool" OFF)
if(${SAK_ENABLE_LINUXDEPLOYQT})
if(${SAK_ENABLE_LINUXDEPLOYQT_DOWNLOAD})
set(appimagetool_url "https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage")
set(linuxdeployqt_url "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage")
set(appimagetool_url
"https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage")
set(linuxdeployqt_url
"https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
)
execute_process(COMMAND wget -O ${CMAKE_BINARY_DIR}/linuxdeployqt ${linuxdeployqt_url})
execute_process(COMMAND wget -O ${CMAKE_BINARY_DIR}/appimagetool ${appimagetool_url})
execute_process(COMMAND chmod +x ${CMAKE_BINARY_DIR}/linuxdeployqt ${linuxdeployqt_url})
@ -22,4 +25,4 @@ if(${SAK_ENABLE_LINUXDEPLOYQT})
endif()
endif()
message(STATUS "linuxdeployqt: ${SAK_BIN_LINUXDEPLOYQT}")
endif()
endif()