chore: update the file

This commit is contained in:
x-tools-author 2025-02-24 13:29:29 +08:00
parent 7d583fbebf
commit 039ccf9bc9
4 changed files with 8 additions and 7 deletions

View File

@ -37,7 +37,7 @@ function(x_tools_deploy_qss target)
${CMAKE_COMMAND} -E copy_directory_if_different
"${CMAKE_SOURCE_DIR}/3rd/${package_name}/styles" "$<TARGET_FILE_DIR:${target}>/3rd_styles"
"||" ${CMAKE_COMMAND} -E true
COMMENT "Copy style resources for ${target}...")
COMMENT "Copy(auto) style resources for ${target}...")
if(EXISTS "$<TARGET_FILE_DIR:${target}>/3rd_styles")
return()
@ -50,5 +50,5 @@ function(x_tools_deploy_qss target)
${CMAKE_COMMAND} -E copy_directory_if_different
"${CMAKE_SOURCE_DIR}/3rd/${package_name}/styles" "$<TARGET_FILE_DIR:${target}>/3rd_styles"
"||" ${CMAKE_COMMAND} -E true
COMMENT "Copy style resources for ${target}...")
COMMENT "Copy(manual) style resources for ${target}...")
endfunction()

View File

@ -24,7 +24,7 @@ function(x_tools_copy_glog target)
endfunction()
# Add executable. It can be used by Qt5 and Qt6.
function(x_tools_add_executable target sources)
function(x_tools_add_executable target)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${X_TOOLS_BINARY_DIR}/${target}")
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(${target} MANUAL_FINALIZATION)
@ -36,9 +36,9 @@ function(x_tools_add_executable target sources)
endif()
else()
if(ANDROID)
add_library(${target} SHARED)
add_library(${target} SHARED ${ARGS})
else()
add_executable(${target})
add_executable(${target} ${ARGS})
endif()
endif()

View File

@ -8,6 +8,7 @@
**************************************************************************************************/
#pragma once
// -------------------------------------------------------------------------------------------------
#include <QApplication>
#include <QDateTime>
#include <QMainWindow>
@ -136,4 +137,4 @@ public:
Q_INVOKABLE void tryToClearSettings();
};
}
} // namespace xTools

View File

@ -6,9 +6,9 @@
* xTools is licensed according to the terms in the file LICENCE(GPL V3) in the root of the source
* code directory.
**************************************************************************************************/
#include "MainWindow.h"
#include "application.h"
#include "common/xtools.h"
#include "mainwindow.h"
int main(const int argc, char *argv[])
{