CMakeLists.txt 15 KB

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