Add app icon
This commit is contained in:
@@ -33,6 +33,9 @@ set(TENMON_SRC
|
||||
)
|
||||
|
||||
qt5_add_resources(TENMON_SRC resources.qrc)
|
||||
if(WIN32)
|
||||
list(APPEND TENMON_SRC icon.rc)
|
||||
endif(WIN32)
|
||||
|
||||
add_executable(tenmon ${TENMON_SRC})
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ int main(int argc, char *argv[])
|
||||
QApplication a(argc, argv);
|
||||
a.setOrganizationName("nou");
|
||||
a.setApplicationName("Tenmon");
|
||||
a.setWindowIcon(QIcon(":/icon.png"));
|
||||
|
||||
MainWindow w;
|
||||
w.show();
|
||||
|
||||
@@ -3,4 +3,7 @@
|
||||
<file>image.frag</file>
|
||||
<file>image.vert</file>
|
||||
</qresource>
|
||||
<qresource prefix="/">
|
||||
<file>icon.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Reference in New Issue
Block a user