diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-07-31 00:39:43 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-07-31 00:39:43 +0300 |
commit | 05d0eaf5fc4947081ae743a58e8675991e3f2422 (patch) | |
tree | b04446704ea2aba0b290fe8203f368bc220afa45 | |
parent | a114f2800616108523311f1ab6f56a444a687224 (diff) | |
download | minetest-05d0eaf5fc4947081ae743a58e8675991e3f2422.tar.gz minetest-05d0eaf5fc4947081ae743a58e8675991e3f2422.tar.bz2 minetest-05d0eaf5fc4947081ae743a58e8675991e3f2422.zip |
added windows icon
-rw-r--r-- | minetest-icon.ico | bin | 0 -> 9662 bytes | |||
-rw-r--r-- | src/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/winresource.rc | 6 |
3 files changed, 11 insertions, 0 deletions
diff --git a/minetest-icon.ico b/minetest-icon.ico Binary files differnew file mode 100644 index 000000000..82af67bf9 --- /dev/null +++ b/minetest-icon.ico diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8ce69b2ad..9bb266784 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 index 000000000..24ec445aa --- /dev/null +++ b/src/winresource.rc @@ -0,0 +1,6 @@ +#include <windows.h>
+#include <commctrl.h>
+#include <richedit.h>
+LANGUAGE 0, SUBLANG_NEUTRAL
+130 ICON "..\\minetest-icon.ico"
+//131 BITMAP "..\\minetest-icon.bmp"
|