From: Perttu Ahola Date: Sat, 30 Jul 2011 21:39:43 +0000 (+0300) Subject: added windows icon X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=05d0eaf5fc4947081ae743a58e8675991e3f2422;p=zefram%2Fminetest%2Fminetest_engine.git added windows icon --- diff --git a/minetest-icon.ico b/minetest-icon.ico new file mode 100644 index 00000000..82af67bf Binary files /dev/null and b/minetest-icon.ico differ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8ce69b2a..9bb26678 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 00000000..24ec445a --- /dev/null +++ b/src/winresource.rc @@ -0,0 +1,6 @@ +#include +#include +#include +LANGUAGE 0, SUBLANG_NEUTRAL +130 ICON "..\\minetest-icon.ico" +//131 BITMAP "..\\minetest-icon.bmp"