From 2a7d9bbb239a74769efb5e7e0ba8694d71ac216a Mon Sep 17 00:00:00 2001 From: tianzhendong <1203886034@qq.com> Date: Fri, 17 Jun 2022 13:42:15 +0800 Subject: [PATCH] 20220617 v1.0.0 --- .gitignore | 1 - CMakeLists.txt | 6 +++--- app_win32.rc | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 app_win32.rc diff --git a/.gitignore b/.gitignore index c96e9d4..35367af 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,6 @@ ui_*.h qrc_*.cpp Thumbs.db *.res -*.rc /.qmake.cache /.qmake.stash diff --git a/CMakeLists.txt b/CMakeLists.txt index 92ddf9f..ef697c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.22) -project(CustomWindow) +project(TemplateWindow) set(CMAKE_CXX_STANDARD 14) set(CMAKE_AUTOMOC ON) @@ -16,8 +16,8 @@ find_package(Qt5 COMPONENTS include_directories(resources) -add_executable(CustomWindow src/main.cpp app_win32.rc src/widget.cpp src/widget.h src/widget.ui) -target_link_libraries(CustomWindow +add_executable(TemplateWindow src/main.cpp app_win32.rc src/widget.cpp src/widget.h src/widget.ui) +target_link_libraries(TemplateWindow Qt5::Core Qt5::Gui Qt5::Widgets diff --git a/app_win32.rc b/app_win32.rc new file mode 100644 index 0000000..da3e7bc --- /dev/null +++ b/app_win32.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON DISCARDABLE "favicon.ico" \ No newline at end of file