added windows icon
authorPerttu Ahola <celeron55@gmail.com>
Sat, 30 Jul 2011 21:39:43 +0000 (00:39 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 30 Jul 2011 21:39:43 +0000 (00:39 +0300)
minetest-icon.ico [new file with mode: 0644]
src/CMakeLists.txt
src/winresource.rc [new file with mode: 0644]

diff --git a/minetest-icon.ico b/minetest-icon.ico
new file mode 100644 (file)
index 0000000..82af67b
Binary files /dev/null and b/minetest-icon.ico differ
index 8ce69b2adf8945e02a9a48c047ffce90ce1398d0..9bb2667842a2031bb21be1fedf45a4f5d4bef98e 100644 (file)
@@ -128,6 +128,11 @@ set(common_SRCS
        base64.cpp
 )
 
+# This gives us the icon
+if(WIN32 AND MSVC)
+    set(common_SRCS ${common_SRCS} winresource.rc)
+endif()
+
 # Client sources
 set(minetest_SRCS
        ${common_SRCS}
diff --git a/src/winresource.rc b/src/winresource.rc
new file mode 100644 (file)
index 0000000..24ec445
--- /dev/null
@@ -0,0 +1,6 @@
+#include <windows.h>\r
+#include <commctrl.h>\r
+#include <richedit.h>\r
+LANGUAGE 0, SUBLANG_NEUTRAL\r
+130        ICON         "..\\minetest-icon.ico"\r
+//131        BITMAP         "..\\minetest-icon.bmp"\r