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:
parent
e78491fda2
commit
6a23960642
@ -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()
|
||||
|
1
client/VCMI_client.mingw.rc
Normal file
1
client/VCMI_client.mingw.rc
Normal file
@ -0,0 +1 @@
|
||||
IDI_ICON1 ICON "vcmi.ico"
|
@ -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})
|
||||
|
1
launcher/VCMI_launcher.mingw.rc
Normal file
1
launcher/VCMI_launcher.mingw.rc
Normal file
@ -0,0 +1 @@
|
||||
IDI_ICON1 ICON "../client/vcmi.ico"
|
Loading…
Reference in New Issue
Block a user