CMakeLists.txt 14 KB

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