From 877691c62a60c90fe40d39a6ab680e7faa9d940b Mon Sep 17 00:00:00 2001 From: hasherezade Date: Sat, 5 Nov 2022 08:14:44 -0700 Subject: [PATCH] [FEATURE] Add icon only to the EXE --- CMakeLists.txt | 2 +- pe_sieve_res.rc | 9 --------- pe_sieve_res_icon.rc | 10 ++++++++++ 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 pe_sieve_res_icon.rc diff --git a/CMakeLists.txt b/CMakeLists.txt index 84cdd6c9..ec03c545 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -252,7 +252,7 @@ if(PESIEVE_AS_STATIC_LIB OR PESIEVE_AS_DLL) ) set_source_files_properties(main.def PROPERTIES HEADER_FILE_ONLY TRUE) else() - add_executable ( ${PROJECT_NAME} ${hdrs} ${srcs} ${rsrc} main.cpp params.h ) + add_executable ( ${PROJECT_NAME} ${hdrs} ${srcs} ${rsrc} pe_sieve_res_icon.rc main.cpp params.h ) endif() set (used_libs diff --git a/pe_sieve_res.rc b/pe_sieve_res.rc index 3b8b896c..2cbc765c 100644 --- a/pe_sieve_res.rc +++ b/pe_sieve_res.rc @@ -22,12 +22,3 @@ #endif #include "common.ver" - -///////////////////////////////////////////////////////////////////////////// -// -// Icon -// - -// Icon with lowest ID value placed first to ensure application icon -// remains consistent on all systems. -IDI_ICON1 ICON "logo/favicon.ico" diff --git a/pe_sieve_res_icon.rc b/pe_sieve_res_icon.rc new file mode 100644 index 00000000..5413a826 --- /dev/null +++ b/pe_sieve_res_icon.rc @@ -0,0 +1,10 @@ +#include + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_ICON1 ICON "logo/favicon.ico"