From 5fc0f9ae2db7741a59e088d0037705c18f349c6e Mon Sep 17 00:00:00 2001 From: JackBoosY Date: Wed, 12 Jan 2022 08:01:58 -0800 Subject: [PATCH] Rename resource config, install resources --- app/GithubChecker/CMakeLists.txt | 7 ++++++- app/GithubChecker/{mainFrame.xml => checkerMainFrame.xml} | 2 +- app/GithubChecker/mainFrame.cpp | 2 +- app/GithubGrabber/CMakeLists.txt | 7 ++++++- app/GithubGrabber/{mainFrame.xml => grabberMainFrame.xml} | 0 app/GithubGrabber/mainFrame.cpp | 2 +- 6 files changed, 15 insertions(+), 5 deletions(-) rename app/GithubChecker/{mainFrame.xml => checkerMainFrame.xml} (98%) rename app/GithubGrabber/{mainFrame.xml => grabberMainFrame.xml} (100%) diff --git a/app/GithubChecker/CMakeLists.txt b/app/GithubChecker/CMakeLists.txt index 96adda1..aa5d348 100644 --- a/app/GithubChecker/CMakeLists.txt +++ b/app/GithubChecker/CMakeLists.txt @@ -13,4 +13,9 @@ target_compile_definitions(GithubChecker PRIVATE _CRT_SECURE_NO_WARNINGS) target_link_libraries(GithubChecker PRIVATE dui::duilib grabber) -install(TARGETS GithubChecker RUNTIME DESTINATION bin) \ No newline at end of file +install(TARGETS GithubChecker RUNTIME DESTINATION bin) + +file(GLOB APP_GRABBER_RESOURCES "${CMAKE_CURRENT_LIST_DIR}/*.png") +list(APPEND APP_GRABBER_RESOURCES "${CMAKE_CURRENT_LIST_DIR}/checkerMainFrame.xml") + +install(FILES ${APP_GRABBER_RESOURCES} DESTINATION bin) \ No newline at end of file diff --git a/app/GithubChecker/mainFrame.xml b/app/GithubChecker/checkerMainFrame.xml similarity index 98% rename from app/GithubChecker/mainFrame.xml rename to app/GithubChecker/checkerMainFrame.xml index 800bfcf..2bb9da4 100644 --- a/app/GithubChecker/mainFrame.xml +++ b/app/GithubChecker/checkerMainFrame.xml @@ -9,7 +9,7 @@