Skip to content

Instantly share code, notes, and snippets.

View Sourabh-AnanyaTech's full-sized avatar
🪰
Focusing

Sourabh-AnanyaTech

🪰
Focusing
View GitHub Profile
@Sourabh-AnanyaTech
Sourabh-AnanyaTech / cmake_windows_icon.txt
Created July 4, 2023 06:48 — forked from Niakr1s/cmake_windows_icon.txt
How to add icon to cmake app in windows
1. Put app.ico in directory.
2. Create app.rc in same directory with one line:
IDI_ICON1 ICON DISCARDABLE "app.ico"
3. Run command (Warning: it's app.o, not app.res, how it is mentioned in other manuals!)
windres app.rc -o app.o
4. add_executable(app
...