1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

CMake/WIN32 : add icon to client and launcher

This commit is contained in:
Michael Pavlyshko 2014-07-14 01:02:00 +03:00
parent e78491fda2
commit 6a23960642
4 changed files with 5 additions and 1 deletions

View File

@ -97,6 +97,8 @@ if(APPLE)
cp -r ${CMAKE_HOME_DIRECTORY}/launcher/icons/ ${BUNDLE_PATH}/Data/launcher/icons/)
add_custom_command(TARGET vcmiclient POST_BUILD COMMAND ${MakeVCMIBundle})
elseif(WIN32)
add_executable(vcmiclient ${client_SRCS} VCMI_client.mingw.rc)
else()
add_executable(vcmiclient ${client_SRCS})
endif()

View File

@ -0,0 +1 @@
IDI_ICON1 ICON "vcmi.ico"

View File

@ -52,7 +52,7 @@ set(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS} ${CMAKE_CXX_FLAGS}")
qt5_wrap_ui(launcher_UI_HEADERS ${launcher_FORMS})
if(WIN32)
add_executable(vcmilauncher WIN32 ${launcher_SRCS} ${launcher_UI_HEADERS})
add_executable(vcmilauncher WIN32 ${launcher_SRCS} ${launcher_UI_HEADERS} VCMI_launcher.mingw.rc)
set_target_properties(vcmilauncher PROPERTIES OUTPUT_NAME VCMI_launcher)
else()
add_executable(vcmilauncher ${launcher_SRCS} ${launcher_UI_HEADERS})

View File

@ -0,0 +1 @@
IDI_ICON1 ICON "../client/vcmi.ico"