File tree Expand file tree Collapse file tree 4 files changed +33
-0
lines changed Expand file tree Collapse file tree 4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,13 @@ OPTION(PRD_CONSOLETOOL
109109 "Enables compilation and installation of the console tool ${PRDOWNLOADER} " ON )
110110
111111if (PRD_CONSOLETOOL)
112+ ### Add icon and manifest to exe using windres
113+ if (WIN32 AND MINGW)
114+ set (PRD_ICON "${CURRENT_SOURCE_DIR} /icon.rc" )
115+ endif ()
116+
112117 add_executable (${PRDOWNLOADER}
118+ ${PRD_ICON}
113119 main.cpp
114120 )
115121
Original file line number Diff line number Diff line change 1+ #if defined(__MWERKS__)
2+ #include <winresrc.h>
3+ #else
4+ #include <windows.h>
5+ #endif
6+
7+ // see "about isolated applications" topic in MSDN
8+ #ifdef ISOLATION_AWARE_ENABLED
9+ #define MANIFEST_ID 2
10+ #else
11+ #define MANIFEST_ID 1
12+ #endif
13+
14+ MANIFEST_ID 24 "pr-downloader.exe.manifest"
15+
16+ //1 ICON "pr-downloader.ico"
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
2+ <assembly xmlns =" urn:schemas-microsoft-com:asm.v1" manifestVersion =" 1.0" >
3+ <assemblyIdentity version =" 1.0.0.0" processorArchitecture =" X86" name =" spring" type =" win32" />
4+ <trustInfo xmlns =" urn:schemas-microsoft-com:asm.v3" >
5+ <security >
6+ <requestedPrivileges >
7+ <requestedExecutionLevel level =" asInvoker" uiAccess =" false" />
8+ </requestedPrivileges >
9+ </security >
10+ </trustInfo >
11+ </assembly >
You can’t perform that action at this time.
0 commit comments