From 8b1c5ddfb5e7bb38ce3edf98c3fa4acae316ebec Mon Sep 17 00:00:00 2001 From: x-tools-author Date: Fri, 29 Mar 2024 20:55:41 +0800 Subject: [PATCH] chore: update the file of project --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5db9c33d..4850ff2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,6 +138,17 @@ if(X_TOOLS_PRIVATE_MODULE_IS_VALID) target_link_libraries(xTools PRIVATE QtAES::QtAES) endif() +add_custom_target( + xTools_pull + COMMAND git pull "https://gitee.com/x-tools-author/x-tools-private.git" + SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/README.md + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) +add_custom_target( + xTools_push + COMMAND git push + SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/README.md + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + # ------------------------------------------------------------------------------------------------- # Assistant applications option(X_TOOLS_ENABLE_APP_ASSISTANTS "Enable assistant applications" OFF) @@ -163,4 +174,9 @@ if((QT_VERSION_MAJOR GREATER 5) AND (NOT Qt6_VERSION VERSION_LESS "6.5.0")) COMMAND git pull ${GITEE_URL} SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/README.md WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/Private) + add_custom_target( + xTools_push_private_modules + COMMAND git push + SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/README.md + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/Private) endif()