CMakeLists.txt 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. set(client_SRCS
  2. StdInc.cpp
  3. ../CCallback.cpp
  4. adventureMap/AdventureMapInterface.cpp
  5. adventureMap/AdventureMapShortcuts.cpp
  6. adventureMap/AdventureMapWidget.cpp
  7. adventureMap/AdventureOptions.cpp
  8. adventureMap/CInGameConsole.cpp
  9. adventureMap/CInfoBar.cpp
  10. adventureMap/CList.cpp
  11. adventureMap/CMinimap.cpp
  12. adventureMap/CResDataBar.cpp
  13. adventureMap/MapAudioPlayer.cpp
  14. adventureMap/TurnTimerWidget.cpp
  15. battle/BattleActionsController.cpp
  16. battle/BattleAnimationClasses.cpp
  17. battle/BattleEffectsController.cpp
  18. battle/BattleFieldController.cpp
  19. battle/BattleInterface.cpp
  20. battle/BattleInterfaceClasses.cpp
  21. battle/BattleObstacleController.cpp
  22. battle/BattleProjectileController.cpp
  23. battle/BattleRenderer.cpp
  24. battle/BattleSiegeController.cpp
  25. battle/BattleStacksController.cpp
  26. battle/BattleWindow.cpp
  27. battle/CreatureAnimation.cpp
  28. eventsSDL/NotificationHandler.cpp
  29. eventsSDL/InputHandler.cpp
  30. eventsSDL/InputSourceKeyboard.cpp
  31. eventsSDL/InputSourceMouse.cpp
  32. eventsSDL/InputSourceText.cpp
  33. eventsSDL/InputSourceTouch.cpp
  34. gui/CGuiHandler.cpp
  35. gui/CIntObject.cpp
  36. gui/CursorHandler.cpp
  37. gui/EventDispatcher.cpp
  38. gui/EventsReceiver.cpp
  39. gui/InterfaceObjectConfigurable.cpp
  40. gui/FramerateManager.cpp
  41. gui/ShortcutHandler.cpp
  42. gui/WindowHandler.cpp
  43. lobby/CBonusSelection.cpp
  44. lobby/CCampaignInfoScreen.cpp
  45. lobby/CLobbyScreen.cpp
  46. lobby/CSavingScreen.cpp
  47. lobby/CScenarioInfoScreen.cpp
  48. lobby/CSelectionBase.cpp
  49. lobby/TurnOptionsTab.cpp
  50. lobby/ExtraOptionsTab.cpp
  51. lobby/OptionsTab.cpp
  52. lobby/OptionsTabBase.cpp
  53. lobby/RandomMapTab.cpp
  54. lobby/SelectionTab.cpp
  55. mainmenu/CCampaignScreen.cpp
  56. mainmenu/CMainMenu.cpp
  57. mainmenu/CPrologEpilogVideo.cpp
  58. mainmenu/CreditsScreen.cpp
  59. mainmenu/CHighScoreScreen.cpp
  60. mapView/MapRenderer.cpp
  61. mapView/MapRendererContext.cpp
  62. mapView/MapRendererContextState.cpp
  63. mapView/MapView.cpp
  64. mapView/MapViewActions.cpp
  65. mapView/MapViewCache.cpp
  66. mapView/MapViewController.cpp
  67. mapView/MapViewModel.cpp
  68. mapView/mapHandler.cpp
  69. render/CAnimation.cpp
  70. render/CBitmapHandler.cpp
  71. render/CDefFile.cpp
  72. render/Canvas.cpp
  73. render/ColorFilter.cpp
  74. render/Colors.cpp
  75. render/Graphics.cpp
  76. render/IFont.cpp
  77. renderSDL/CBitmapFont.cpp
  78. renderSDL/CBitmapHanFont.cpp
  79. renderSDL/CTrueTypeFont.cpp
  80. renderSDL/CursorHardware.cpp
  81. renderSDL/CursorSoftware.cpp
  82. renderSDL/RenderHandler.cpp
  83. renderSDL/SDLImage.cpp
  84. renderSDL/SDLImageLoader.cpp
  85. renderSDL/SDLRWwrapper.cpp
  86. renderSDL/ScreenHandler.cpp
  87. renderSDL/SDL_Extensions.cpp
  88. globalLobby/GlobalLobbyClient.cpp
  89. globalLobby/GlobalLobbyLoginWindow.cpp
  90. globalLobby/GlobalLobbyServerSetup.cpp
  91. globalLobby/GlobalLobbyWidget.cpp
  92. globalLobby/GlobalLobbyWindow.cpp
  93. widgets/Buttons.cpp
  94. widgets/CArtifactHolder.cpp
  95. widgets/CComponent.cpp
  96. widgets/CExchangeController.cpp
  97. widgets/CGarrisonInt.cpp
  98. widgets/CreatureCostBox.cpp
  99. widgets/ComboBox.cpp
  100. widgets/GraphicalPrimitiveCanvas.cpp
  101. widgets/Images.cpp
  102. widgets/MiscWidgets.cpp
  103. widgets/ObjectLists.cpp
  104. widgets/TextControls.cpp
  105. widgets/Scrollable.cpp
  106. widgets/Slider.cpp
  107. widgets/CArtifactsOfHeroBase.cpp
  108. widgets/CArtifactsOfHeroMain.cpp
  109. widgets/CArtifactsOfHeroKingdom.cpp
  110. widgets/CArtifactsOfHeroAltar.cpp
  111. widgets/CArtifactsOfHeroMarket.cpp
  112. widgets/CArtifactsOfHeroBackpack.cpp
  113. widgets/CWindowWithArtifacts.cpp
  114. widgets/RadialMenu.cpp
  115. widgets/markets/CAltarArtifacts.cpp
  116. widgets/markets/CAltarCreatures.cpp
  117. widgets/markets/CArtifactsBuying.cpp
  118. widgets/markets/CArtifactsSelling.cpp
  119. widgets/markets/CFreelancerGuild.cpp
  120. widgets/markets/CMarketResources.cpp
  121. widgets/markets/CTransferResources.cpp
  122. widgets/markets/CMarketBase.cpp
  123. widgets/markets/TradePanels.cpp
  124. windows/CCastleInterface.cpp
  125. windows/CCreatureWindow.cpp
  126. windows/CHeroOverview.cpp
  127. windows/CHeroWindow.cpp
  128. windows/CKingdomInterface.cpp
  129. windows/CMapOverview.cpp
  130. windows/CMarketWindow.cpp
  131. windows/CMessage.cpp
  132. windows/CPuzzleWindow.cpp
  133. windows/CQuestLog.cpp
  134. windows/CSpellWindow.cpp
  135. windows/CTutorialWindow.cpp
  136. windows/CWindowObject.cpp
  137. windows/CreaturePurchaseCard.cpp
  138. windows/GUIClasses.cpp
  139. windows/InfoWindows.cpp
  140. windows/QuickRecruitmentWindow.cpp
  141. windows/CHeroBackpackWindow.cpp
  142. windows/settings/GeneralOptionsTab.cpp
  143. windows/settings/OtherOptionsTab.cpp
  144. windows/settings/SettingsMainWindow.cpp
  145. windows/settings/BattleOptionsTab.cpp
  146. windows/settings/AdventureOptionsTab.cpp
  147. CGameInfo.cpp
  148. CMT.cpp
  149. CMusicHandler.cpp
  150. CPlayerInterface.cpp
  151. PlayerLocalState.cpp
  152. CServerHandler.cpp
  153. CVideoHandler.cpp
  154. Client.cpp
  155. ClientCommandManager.cpp
  156. HeroMovementController.cpp
  157. NetPacksClient.cpp
  158. NetPacksLobbyClient.cpp
  159. ServerRunner.cpp
  160. )
  161. set(client_HEADERS
  162. StdInc.h
  163. adventureMap/AdventureMapInterface.h
  164. adventureMap/AdventureMapShortcuts.h
  165. adventureMap/AdventureMapWidget.h
  166. adventureMap/AdventureState.h
  167. adventureMap/AdventureOptions.h
  168. adventureMap/CInGameConsole.h
  169. adventureMap/CInfoBar.h
  170. adventureMap/CList.h
  171. adventureMap/CMinimap.h
  172. adventureMap/CResDataBar.h
  173. adventureMap/MapAudioPlayer.h
  174. adventureMap/TurnTimerWidget.h
  175. battle/BattleActionsController.h
  176. battle/BattleAnimationClasses.h
  177. battle/BattleConstants.h
  178. battle/BattleEffectsController.h
  179. battle/BattleFieldController.h
  180. battle/BattleInterface.h
  181. battle/BattleInterfaceClasses.h
  182. battle/BattleObstacleController.h
  183. battle/BattleProjectileController.h
  184. battle/BattleRenderer.h
  185. battle/BattleSiegeController.h
  186. battle/BattleStacksController.h
  187. battle/BattleWindow.h
  188. battle/CreatureAnimation.h
  189. eventsSDL/NotificationHandler.h
  190. eventsSDL/InputHandler.h
  191. eventsSDL/InputSourceKeyboard.h
  192. eventsSDL/InputSourceMouse.h
  193. eventsSDL/InputSourceText.h
  194. eventsSDL/InputSourceTouch.h
  195. gui/CGuiHandler.h
  196. gui/CIntObject.h
  197. gui/CursorHandler.h
  198. gui/EventDispatcher.h
  199. gui/EventsReceiver.h
  200. gui/InterfaceObjectConfigurable.h
  201. gui/FramerateManager.h
  202. gui/MouseButton.h
  203. gui/Shortcut.h
  204. gui/ShortcutHandler.h
  205. gui/TextAlignment.h
  206. gui/WindowHandler.h
  207. lobby/CBonusSelection.h
  208. lobby/CCampaignInfoScreen.h
  209. lobby/CLobbyScreen.h
  210. lobby/CSavingScreen.h
  211. lobby/CScenarioInfoScreen.h
  212. lobby/CSelectionBase.h
  213. lobby/TurnOptionsTab.h
  214. lobby/ExtraOptionsTab.h
  215. lobby/OptionsTab.h
  216. lobby/OptionsTabBase.h
  217. lobby/RandomMapTab.h
  218. lobby/SelectionTab.h
  219. mainmenu/CCampaignScreen.h
  220. mainmenu/CMainMenu.h
  221. mainmenu/CPrologEpilogVideo.h
  222. mainmenu/CreditsScreen.h
  223. mainmenu/CHighScoreScreen.h
  224. mapView/IMapRendererContext.h
  225. mapView/IMapRendererObserver.h
  226. mapView/MapRenderer.h
  227. mapView/MapRendererContext.h
  228. mapView/MapRendererContextState.h
  229. mapView/MapView.h
  230. mapView/MapViewActions.h
  231. mapView/MapViewCache.h
  232. mapView/MapViewController.h
  233. mapView/MapViewModel.h
  234. mapView/mapHandler.h
  235. render/CAnimation.h
  236. render/CBitmapHandler.h
  237. render/CDefFile.h
  238. render/Canvas.h
  239. render/ColorFilter.h
  240. render/Colors.h
  241. render/EFont.h
  242. render/Graphics.h
  243. render/ICursor.h
  244. render/IFont.h
  245. render/IImage.h
  246. render/IImageLoader.h
  247. render/IRenderHandler.h
  248. render/IScreenHandler.h
  249. renderSDL/CBitmapFont.h
  250. renderSDL/CBitmapHanFont.h
  251. renderSDL/CTrueTypeFont.h
  252. renderSDL/CursorHardware.h
  253. renderSDL/CursorSoftware.h
  254. renderSDL/RenderHandler.h
  255. renderSDL/SDLImage.h
  256. renderSDL/SDLImageLoader.h
  257. renderSDL/SDLRWwrapper.h
  258. renderSDL/ScreenHandler.h
  259. renderSDL/SDL_Extensions.h
  260. renderSDL/SDL_PixelAccess.h
  261. globalLobby/GlobalLobbyClient.h
  262. globalLobby/GlobalLobbyDefines.h
  263. globalLobby/GlobalLobbyLoginWindow.h
  264. globalLobby/GlobalLobbyServerSetup.h
  265. globalLobby/GlobalLobbyWidget.h
  266. globalLobby/GlobalLobbyWindow.h
  267. widgets/Buttons.h
  268. widgets/CArtifactHolder.h
  269. widgets/CComponent.h
  270. widgets/CExchangeController.h
  271. widgets/CGarrisonInt.h
  272. widgets/CreatureCostBox.h
  273. widgets/ComboBox.h
  274. widgets/GraphicalPrimitiveCanvas.h
  275. widgets/Images.h
  276. widgets/MiscWidgets.h
  277. widgets/ObjectLists.h
  278. widgets/TextControls.h
  279. widgets/Scrollable.h
  280. widgets/Slider.h
  281. widgets/CArtifactsOfHeroBase.h
  282. widgets/CArtifactsOfHeroMain.h
  283. widgets/CArtifactsOfHeroKingdom.h
  284. widgets/CArtifactsOfHeroAltar.h
  285. widgets/CArtifactsOfHeroMarket.h
  286. widgets/CArtifactsOfHeroBackpack.h
  287. widgets/CWindowWithArtifacts.h
  288. widgets/RadialMenu.h
  289. widgets/markets/CAltarArtifacts.h
  290. widgets/markets/CAltarCreatures.h
  291. widgets/markets/CArtifactsBuying.h
  292. widgets/markets/CArtifactsSelling.h
  293. widgets/markets/CFreelancerGuild.h
  294. widgets/markets/CMarketResources.h
  295. widgets/markets/CTransferResources.h
  296. widgets/markets/CMarketBase.h
  297. widgets/markets/TradePanels.h
  298. windows/CCastleInterface.h
  299. windows/CCreatureWindow.h
  300. windows/CHeroOverview.h
  301. windows/CHeroWindow.h
  302. windows/CKingdomInterface.h
  303. windows/CMessage.h
  304. windows/CMapOverview.h
  305. windows/CMarketWindow.h
  306. windows/CPuzzleWindow.h
  307. windows/CQuestLog.h
  308. windows/CSpellWindow.h
  309. windows/CTutorialWindow.h
  310. windows/CWindowObject.h
  311. windows/CreaturePurchaseCard.h
  312. windows/GUIClasses.h
  313. windows/InfoWindows.h
  314. windows/QuickRecruitmentWindow.h
  315. windows/CHeroBackpackWindow.h
  316. windows/settings/GeneralOptionsTab.h
  317. windows/settings/OtherOptionsTab.h
  318. windows/settings/SettingsMainWindow.h
  319. windows/settings/BattleOptionsTab.h
  320. windows/settings/AdventureOptionsTab.h
  321. CGameInfo.h
  322. CMT.h
  323. CMusicHandler.h
  324. CPlayerInterface.h
  325. PlayerLocalState.h
  326. CServerHandler.h
  327. CVideoHandler.h
  328. Client.h
  329. ClientCommandManager.h
  330. ClientNetPackVisitors.h
  331. HeroMovementController.h
  332. LobbyClientNetPackVisitors.h
  333. ServerRunner.h
  334. resource.h
  335. )
  336. if(APPLE_IOS)
  337. set(client_SRCS ${client_SRCS}
  338. CFocusableHelper.cpp
  339. ios/GameChatKeyboardHandler.m
  340. ios/main.m
  341. ios/startSDL.mm
  342. ios/utils.mm
  343. )
  344. set(client_HEADERS ${client_HEADERS}
  345. CFocusableHelper.h
  346. ios/GameChatKeyboardHandler.h
  347. ios/startSDL.h
  348. ios/utils.h
  349. )
  350. endif()
  351. assign_source_group(${client_SRCS} ${client_HEADERS} VCMI_client.rc)
  352. if(ANDROID)
  353. add_library(vcmiclient SHARED ${client_SRCS} ${client_HEADERS})
  354. else()
  355. add_executable(vcmiclient ${client_SRCS} ${client_HEADERS})
  356. endif()
  357. if(NOT ENABLE_STATIC_LIBS)
  358. add_dependencies(vcmiclient
  359. BattleAI
  360. EmptyAI
  361. StupidAI
  362. VCAI
  363. )
  364. if(ENABLE_NULLKILLER_AI)
  365. add_dependencies(vcmiclient Nullkiller)
  366. endif()
  367. endif()
  368. if(APPLE_IOS)
  369. if(ENABLE_ERM)
  370. add_dependencies(vcmiclient vcmiERM)
  371. endif()
  372. if(ENABLE_LUA)
  373. add_dependencies(vcmiclient vcmiLua)
  374. endif()
  375. endif()
  376. if(WIN32)
  377. target_sources(vcmiclient PRIVATE "VCMI_client.rc")
  378. set_target_properties(vcmiclient
  379. PROPERTIES
  380. OUTPUT_NAME "VCMI_client"
  381. PROJECT_LABEL "VCMI_client"
  382. )
  383. set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT vcmiclient)
  384. if(NOT ENABLE_DEBUG_CONSOLE)
  385. set_target_properties(vcmiclient PROPERTIES WIN32_EXECUTABLE)
  386. target_link_libraries(vcmiclient SDL2::SDL2main)
  387. endif()
  388. target_compile_definitions(vcmiclient PRIVATE WINDOWS_IGNORE_PACKING_MISMATCH)
  389. # TODO: very hacky, find proper solution to copy AI dlls into bin dir
  390. if(MSVC)
  391. add_custom_command(TARGET vcmiclient POST_BUILD
  392. WORKING_DIRECTORY "$<TARGET_FILE_DIR:vcmiclient>"
  393. COMMAND ${CMAKE_COMMAND} -E copy AI/fuzzylite.dll fuzzylite.dll
  394. COMMAND ${CMAKE_COMMAND} -E copy AI/tbb12.dll tbb12.dll
  395. )
  396. endif()
  397. elseif(APPLE_IOS)
  398. target_link_libraries(vcmiclient PRIVATE
  399. iOS_utils
  400. # FFmpeg
  401. bz2
  402. iconv
  403. z
  404. "-framework AudioToolbox"
  405. "-framework AVFoundation"
  406. "-framework CoreMedia"
  407. "-framework VideoToolbox"
  408. )
  409. set_target_properties(vcmiclient PROPERTIES
  410. MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_LIST_DIR}/ios/Info.plist"
  411. XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@executable_path/Frameworks"
  412. XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "$(CODE_SIGNING_ALLOWED_FOR_APPS)"
  413. XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME AppIcon
  414. )
  415. foreach(XCODE_RESOURCE LaunchScreen.storyboard Images.xcassets Settings.bundle vcmi_logo.png)
  416. set(XCODE_RESOURCE_PATH ios/${XCODE_RESOURCE})
  417. target_sources(vcmiclient PRIVATE ${XCODE_RESOURCE_PATH})
  418. set_source_files_properties(${XCODE_RESOURCE_PATH} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
  419. # workaround to prevent CMAKE_SKIP_PRECOMPILE_HEADERS being added as compile flag
  420. if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.22.0" AND CMAKE_VERSION VERSION_LESS "3.25.0")
  421. set_source_files_properties(${XCODE_RESOURCE_PATH} PROPERTIES LANGUAGE CXX)
  422. endif()
  423. endforeach()
  424. set(CMAKE_EXE_LINKER_FLAGS "-Wl,-e,_client_main")
  425. endif()
  426. target_link_libraries(vcmiclient PRIVATE vcmiservercommon)
  427. if(ENABLE_SINGLE_APP_BUILD AND ENABLE_LAUNCHER)
  428. target_link_libraries(vcmiclient PRIVATE vcmilauncher)
  429. endif()
  430. target_link_libraries(vcmiclient PRIVATE
  431. vcmi SDL2::SDL2 SDL2::Image SDL2::Mixer SDL2::TTF
  432. )
  433. if(ffmpeg_LIBRARIES)
  434. target_link_libraries(vcmiclient PRIVATE
  435. ${ffmpeg_LIBRARIES}
  436. )
  437. else()
  438. target_compile_definitions(vcmiclient PRIVATE DISABLE_VIDEO)
  439. endif()
  440. target_include_directories(vcmiclient PUBLIC
  441. ${CMAKE_CURRENT_SOURCE_DIR}
  442. )
  443. if (ffmpeg_INCLUDE_DIRS)
  444. target_include_directories(vcmiclient PRIVATE
  445. ${ffmpeg_INCLUDE_DIRS}
  446. )
  447. endif()
  448. vcmi_set_output_dir(vcmiclient "")
  449. enable_pch(vcmiclient)
  450. if(APPLE_IOS)
  451. vcmi_install_conan_deps("\${CMAKE_INSTALL_PREFIX}")
  452. add_custom_command(TARGET vcmiclient POST_BUILD
  453. COMMAND ios/set_build_version.sh "$<TARGET_BUNDLE_CONTENT_DIR:vcmiclient>"
  454. COMMAND ${CMAKE_COMMAND} --install "${CMAKE_BINARY_DIR}" --component "${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME}" --config "$<CONFIG>" --prefix "$<TARGET_BUNDLE_CONTENT_DIR:vcmiclient>"
  455. COMMAND ios/rpath_remove_symlinks.sh
  456. COMMAND ios/codesign.sh
  457. WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
  458. )
  459. install(TARGETS vcmiclient DESTINATION Payload COMPONENT app) # for ipa generation with cpack
  460. elseif(ANDROID)
  461. vcmi_install_conan_deps("\${CMAKE_INSTALL_PREFIX}/${LIB_DIR}")
  462. add_custom_command(TARGET vcmiclient POST_BUILD
  463. COMMAND ${CMAKE_COMMAND} --install "${CMAKE_BINARY_DIR}" --config "$<CONFIG>" --prefix "${CMAKE_SOURCE_DIR}/android/vcmi-app/src/main"
  464. )
  465. install(TARGETS vcmiclient DESTINATION ${LIB_DIR})
  466. else()
  467. install(TARGETS vcmiclient DESTINATION ${BIN_DIR})
  468. endif()
  469. #install icons and desktop file on Linux
  470. if(NOT WIN32 AND NOT APPLE AND NOT ANDROID)
  471. #FIXME: move to client makefile?
  472. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.16x16.png" DESTINATION share/icons/hicolor/16x16/apps RENAME vcmiclient.png)
  473. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.22x22.png" DESTINATION share/icons/hicolor/22x22/apps RENAME vcmiclient.png)
  474. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.32x32.png" DESTINATION share/icons/hicolor/32x32/apps RENAME vcmiclient.png)
  475. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.48x48.png" DESTINATION share/icons/hicolor/48x48/apps RENAME vcmiclient.png)
  476. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.64x64.png" DESTINATION share/icons/hicolor/64x64/apps RENAME vcmiclient.png)
  477. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.128x128.png" DESTINATION share/icons/hicolor/128x128/apps RENAME vcmiclient.png)
  478. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.256x256.png" DESTINATION share/icons/hicolor/256x256/apps RENAME vcmiclient.png)
  479. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.512x512.png" DESTINATION share/icons/hicolor/512x512/apps RENAME vcmiclient.png)
  480. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.1024x1024.png" DESTINATION share/icons/hicolor/1024x1024/apps RENAME vcmiclient.png)
  481. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.2048x2048.png" DESTINATION share/icons/hicolor/2048x2048/apps RENAME vcmiclient.png)
  482. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.svg" DESTINATION share/icons/hicolor/scalable/apps RENAME vcmiclient.svg)
  483. install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.desktop" DESTINATION share/applications)
  484. endif()