chore: update files fo project

This commit is contained in:
x-tools-author 2024-03-30 14:09:30 +08:00
parent 5a04ed322e
commit 36595f813b
12 changed files with 18 additions and 21 deletions

View File

@ -7,7 +7,7 @@
* code directory. * code directory.
**************************************************************************************************/ **************************************************************************************************/
#include "xToolsAsciiAssistant.h" #include "xToolsAsciiAssistant.h"
#include "xToolsUi.h" #include "xTools.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {

View File

@ -7,7 +7,7 @@
* code directory. * code directory.
**************************************************************************************************/ **************************************************************************************************/
#include "xToolsBase64Assisatnt.h" #include "xToolsBase64Assisatnt.h"
#include "xToolsUi.h" #include "xTools.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {

View File

@ -7,7 +7,7 @@
* code directory. * code directory.
**************************************************************************************************/ **************************************************************************************************/
#include "xToolsBroadcastAssistant.h" #include "xToolsBroadcastAssistant.h"
#include "xToolsUi.h" #include "xTools.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {

View File

@ -1,12 +1,10 @@
set(X_TOOLS_COMMON_PATH ${CMAKE_SOURCE_DIR}/Source/Common) set(X_TOOLS_COMMON_PATH ${CMAKE_SOURCE_DIR}/Source/Common)
list(APPEND X_TOOLS_ ${X_TOOLS_COMMON_PATH}/Common/xToolsInterface.h) list(APPEND X_TOOLS_COMMON ${X_TOOLS_COMMON_PATH}/Common/xToolsSettings.h)
list(APPEND X_TOOLS_ ${X_TOOLS_COMMON_PATH}/Common/xToolsInterface.cpp) list(APPEND X_TOOLS_COMMON ${X_TOOLS_COMMON_PATH}/Common/xToolsSettings.cpp)
list(APPEND X_TOOLS_ ${X_TOOLS_COMMON_PATH}/Common/xToolsSettings.h) list(APPEND X_TOOLS_COMMON ${X_TOOLS_COMMON_PATH}/Common/xToolsApplication.h)
list(APPEND X_TOOLS_ ${X_TOOLS_COMMON_PATH}/Common/xToolsSettings.cpp) list(APPEND X_TOOLS_COMMON ${X_TOOLS_COMMON_PATH}/Common/xToolsApplication.cpp)
list(APPEND X_TOOLS_ ${X_TOOLS_COMMON_PATH}/CommonUI/xToolsMainWindow.h) list(APPEND X_TOOLS_COMMON ${X_TOOLS_COMMON_PATH}/CommonUI/xToolsMainWindow.h)
list(APPEND X_TOOLS_ ${X_TOOLS_COMMON_PATH}/CommonUI/xToolsMainWindow.cpp) list(APPEND X_TOOLS_COMMON ${X_TOOLS_COMMON_PATH}/CommonUI/xToolsMainWindow.cpp)
list(APPEND X_TOOLS_ ${X_TOOLS_COMMON_PATH}/CommonUI/xToolsApplication.h)
list(APPEND X_TOOLS_ ${X_TOOLS_COMMON_PATH}/CommonUI/xToolsApplication.cpp)
macro(x_tools_add_assistant dir_name app_name) macro(x_tools_add_assistant dir_name app_name)
string(TOUPPER ${app_name} upper_app_name) string(TOUPPER ${app_name} upper_app_name)
@ -22,7 +20,7 @@ macro(x_tools_add_assistant dir_name app_name)
list(APPEND ASSISTANT_SOURCES ${ASSISTANT_SOURCES_CPP}) list(APPEND ASSISTANT_SOURCES ${ASSISTANT_SOURCES_CPP})
list(APPEND ASSISTANT_SOURCES ${ASSISTANT_SOURCES_QRC}) list(APPEND ASSISTANT_SOURCES ${ASSISTANT_SOURCES_QRC})
list(APPEND ASSISTANT_SOURCES ${ASSISTANT_OWN_SOURCE}) list(APPEND ASSISTANT_SOURCES ${ASSISTANT_OWN_SOURCE})
list(APPEND ASSISTANT_SOURCES ${X_TOOLS_}) list(APPEND ASSISTANT_SOURCES ${X_TOOLS_COMMON})
list(APPEND ASSISTANT_SOURCES ${CMAKE_SOURCE_DIR}/xTools.qrc) list(APPEND ASSISTANT_SOURCES ${CMAKE_SOURCE_DIR}/xTools.qrc)
list(APPEND ASSISTANT_SOURCES ${CMAKE_SOURCE_DIR}/Source/Common/xToolsCommon.qrc) list(APPEND ASSISTANT_SOURCES ${CMAKE_SOURCE_DIR}/Source/Common/xToolsCommon.qrc)
if(WIN32) if(WIN32)

View File

@ -1,6 +1,4 @@
set(ASSISTANT_OWN_SOURCE "") set(ASSISTANT_OWN_SOURCE "")
list(APPEND ASSISTANT_OWN_SOURCE ${CMAKE_SOURCE_DIR}/Source/Common/Common/xToolsCrcInterface.h)
list(APPEND ASSISTANT_OWN_SOURCE ${CMAKE_SOURCE_DIR}/Source/Common/Common/xToolsCrcInterface.cpp)
set(ASSISTANT_OWN_LIBS Qt${QT_VERSION_MAJOR}::Widgets) set(ASSISTANT_OWN_LIBS Qt${QT_VERSION_MAJOR}::Widgets)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Source) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Source)

View File

@ -7,7 +7,7 @@
* code directory. * code directory.
**************************************************************************************************/ **************************************************************************************************/
#include "xToolsCRCAssistant.h" #include "xToolsCRCAssistant.h"
#include "xToolsUi.h" #include "xTools.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {

View File

@ -7,7 +7,7 @@
* code directory. * code directory.
**************************************************************************************************/ **************************************************************************************************/
#include "xToolsFileCheckAssistant.h" #include "xToolsFileCheckAssistant.h"
#include "xToolsUi.h" #include "xTools.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {

View File

@ -7,7 +7,7 @@
* code directory. * code directory.
**************************************************************************************************/ **************************************************************************************************/
#include "xToolsNumberAssistant.h" #include "xToolsNumberAssistant.h"
#include "xToolsUi.h" #include "xTools.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {

View File

@ -7,7 +7,7 @@
* code directory. * code directory.
**************************************************************************************************/ **************************************************************************************************/
#include "xToolsPingAssistant.h" #include "xToolsPingAssistant.h"
#include "xToolsUi.h" #include "xTools.h"
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {

View File

@ -7,7 +7,7 @@
* code directory. * code directory.
**************************************************************************************************/ **************************************************************************************************/
#include "xToolsStringAssistant.h" #include "xToolsStringAssistant.h"
#include "xToolsUi.h" #include "xTools.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {

View File

@ -1,4 +1,5 @@
set(ASSISTANT_OWN_SOURCE "") set(ASSISTANT_OWN_SOURCE ${CMAKE_SOURCE_DIR}/Source/Common/Common/xToolsDataStruct.h)
set(ASSISTANT_OWN_SOURCE ${CMAKE_SOURCE_DIR}/Source/Common/Common/xToolsDataStruct.cpp)
set(ASSISTANT_OWN_LIBS Qt${QT_VERSION_MAJOR}::Widgets qmdnsengine) set(ASSISTANT_OWN_LIBS Qt${QT_VERSION_MAJOR}::Widgets qmdnsengine)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Source) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Source)

View File

@ -6,8 +6,8 @@
* xTools is licensed according to the terms in the file LICENCE(GPL V3) in the root of the source * xTools is licensed according to the terms in the file LICENCE(GPL V3) in the root of the source
* code directory. * code directory.
**************************************************************************************************/ **************************************************************************************************/
#include "xTools.h"
#include "xToolsMdnsAssistant.h" #include "xToolsMdnsAssistant.h"
#include "xToolsUi.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {