1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/client/CMakeLists.txt

493 lines
12 KiB
CMake
Raw Normal View History

set(vcmiclientcommon_SRCS
2023-02-01 16:42:03 +02:00
StdInc.cpp
../CCallback.cpp
adventureMap/AdventureMapInterface.cpp
adventureMap/AdventureMapShortcuts.cpp
adventureMap/AdventureMapWidget.cpp
adventureMap/AdventureOptions.cpp
2023-02-01 16:42:03 +02:00
adventureMap/CInGameConsole.cpp
adventureMap/CInfoBar.cpp
adventureMap/CList.cpp
adventureMap/CMinimap.cpp
adventureMap/CResDataBar.cpp
2023-03-01 17:20:05 +02:00
adventureMap/MapAudioPlayer.cpp
2023-08-13 12:06:35 +02:00
adventureMap/TurnTimerWidget.cpp
2023-02-01 16:42:03 +02:00
battle/BattleActionsController.cpp
battle/BattleAnimationClasses.cpp
battle/BattleEffectsController.cpp
battle/BattleFieldController.cpp
battle/BattleInterface.cpp
battle/BattleInterfaceClasses.cpp
battle/BattleObstacleController.cpp
battle/BattleProjectileController.cpp
battle/BattleRenderer.cpp
battle/BattleSiegeController.cpp
battle/BattleStacksController.cpp
battle/BattleWindow.cpp
battle/CreatureAnimation.cpp
2024-08-06 21:29:04 +02:00
battle/BattleOverlayLogVisualizer.cpp
2023-02-01 16:42:03 +02:00
eventsSDL/NotificationHandler.cpp
eventsSDL/InputHandler.cpp
eventsSDL/InputSourceKeyboard.cpp
eventsSDL/InputSourceMouse.cpp
eventsSDL/InputSourceText.cpp
eventsSDL/InputSourceTouch.cpp
2024-04-03 14:34:22 +02:00
eventsSDL/InputSourceGameController.cpp
2023-02-01 16:42:03 +02:00
gui/CGuiHandler.cpp
gui/CIntObject.cpp
gui/CursorHandler.cpp
2023-05-18 12:31:26 +02:00
gui/EventDispatcher.cpp
gui/EventsReceiver.cpp
2023-02-01 16:42:03 +02:00
gui/InterfaceObjectConfigurable.cpp
gui/FramerateManager.cpp
gui/ShortcutHandler.cpp
gui/WindowHandler.cpp
2023-02-01 16:42:03 +02:00
lobby/CBonusSelection.cpp
lobby/CCampaignInfoScreen.cpp
lobby/CLobbyScreen.cpp
lobby/CSavingScreen.cpp
lobby/CScenarioInfoScreen.cpp
lobby/CSelectionBase.cpp
lobby/TurnOptionsTab.cpp
2023-12-28 20:41:01 +02:00
lobby/ExtraOptionsTab.cpp
2023-02-01 16:42:03 +02:00
lobby/OptionsTab.cpp
lobby/OptionsTabBase.cpp
2023-02-01 16:42:03 +02:00
lobby/RandomMapTab.cpp
lobby/SelectionTab.cpp
mainmenu/CCampaignScreen.cpp
mainmenu/CMainMenu.cpp
mainmenu/CPrologEpilogVideo.cpp
mainmenu/CreditsScreen.cpp
2023-09-22 01:39:35 +02:00
mainmenu/CHighScoreScreen.cpp
2023-02-01 16:42:03 +02:00
2023-03-01 12:31:23 +02:00
mapView/MapRenderer.cpp
mapView/MapRendererContext.cpp
mapView/MapRendererContextState.cpp
mapView/MapView.cpp
mapView/MapViewActions.cpp
mapView/MapViewCache.cpp
mapView/MapViewController.cpp
mapView/MapViewModel.cpp
mapView/mapHandler.cpp
2024-08-06 21:29:04 +02:00
mapView/MapOverlayLogVisualizer.cpp
2023-02-20 21:02:28 +02:00
media/CAudioBase.cpp
media/CMusicHandler.cpp
media/CSoundHandler.cpp
media/CVideoHandler.cpp
2023-02-01 16:42:03 +02:00
render/CAnimation.cpp
render/CBitmapHandler.cpp
render/CDefFile.cpp
render/Canvas.cpp
render/ColorFilter.cpp
render/Colors.cpp
2023-02-01 16:42:03 +02:00
render/Graphics.cpp
render/IFont.cpp
render/ImageLocator.cpp
2023-02-01 16:42:03 +02:00
renderSDL/CBitmapFont.cpp
renderSDL/CBitmapHanFont.cpp
renderSDL/CTrueTypeFont.cpp
renderSDL/CursorHardware.cpp
renderSDL/CursorSoftware.cpp
renderSDL/RenderHandler.cpp
2023-02-01 16:42:03 +02:00
renderSDL/SDLImage.cpp
renderSDL/SDLImageLoader.cpp
renderSDL/SDLRWwrapper.cpp
renderSDL/ScreenHandler.cpp
2023-02-01 16:42:03 +02:00
renderSDL/SDL_Extensions.cpp
globalLobby/GlobalLobbyClient.cpp
globalLobby/GlobalLobbyInviteWindow.cpp
globalLobby/GlobalLobbyLoginWindow.cpp
2024-04-16 15:30:22 +02:00
globalLobby/GlobalLobbyRoomWindow.cpp
globalLobby/GlobalLobbyServerSetup.cpp
globalLobby/GlobalLobbyWidget.cpp
globalLobby/GlobalLobbyWindow.cpp
2023-02-01 16:42:03 +02:00
widgets/Buttons.cpp
2024-04-23 12:49:35 +02:00
widgets/CArtPlace.cpp
2023-02-01 16:42:03 +02:00
widgets/CComponent.cpp
2023-09-17 17:40:14 +02:00
widgets/CExchangeController.cpp
2023-02-01 16:42:03 +02:00
widgets/CGarrisonInt.cpp
widgets/CreatureCostBox.cpp
2023-08-25 12:52:23 +02:00
widgets/ComboBox.cpp
widgets/CTextInput.cpp
widgets/GraphicalPrimitiveCanvas.cpp
2023-02-01 16:42:03 +02:00
widgets/Images.cpp
widgets/MiscWidgets.cpp
widgets/ObjectLists.cpp
widgets/TextControls.cpp
2023-05-30 16:31:45 +02:00
widgets/Scrollable.cpp
widgets/Slider.cpp
2023-04-23 14:10:35 +02:00
widgets/CArtifactsOfHeroBase.cpp
widgets/CArtifactsOfHeroMain.cpp
widgets/CArtifactsOfHeroKingdom.cpp
widgets/CArtifactsOfHeroAltar.cpp
widgets/CArtifactsOfHeroMarket.cpp
2023-07-06 21:14:12 +02:00
widgets/CArtifactsOfHeroBackpack.cpp
2023-07-07 00:08:29 +02:00
widgets/RadialMenu.cpp
widgets/VideoWidget.cpp
2023-12-04 23:21:49 +02:00
widgets/markets/CAltarArtifacts.cpp
widgets/markets/CAltarCreatures.cpp
2024-02-21 20:48:14 +02:00
widgets/markets/CArtifactsBuying.cpp
2024-02-25 22:58:53 +02:00
widgets/markets/CArtifactsSelling.cpp
2024-02-03 22:59:05 +02:00
widgets/markets/CFreelancerGuild.cpp
2024-02-19 23:40:43 +02:00
widgets/markets/CMarketResources.cpp
2024-02-21 20:48:14 +02:00
widgets/markets/CTransferResources.cpp
2024-03-02 20:30:29 +02:00
widgets/markets/CMarketBase.cpp
2023-12-04 23:21:49 +02:00
widgets/markets/TradePanels.cpp
2023-02-01 16:42:03 +02:00
windows/CCastleInterface.cpp
windows/CCreatureWindow.cpp
windows/CExchangeWindow.cpp
2023-09-17 00:32:10 +02:00
windows/CHeroOverview.cpp
2023-02-01 16:42:03 +02:00
windows/CHeroWindow.cpp
windows/CKingdomInterface.cpp
2023-09-30 15:05:12 +02:00
windows/CMapOverview.cpp
2024-02-03 13:26:24 +02:00
windows/CMarketWindow.cpp
2023-02-01 16:42:03 +02:00
windows/CMessage.cpp
windows/CPuzzleWindow.cpp
2023-02-01 16:42:03 +02:00
windows/CQuestLog.cpp
windows/CSpellWindow.cpp
windows/CTutorialWindow.cpp
2023-02-01 16:42:03 +02:00
windows/CWindowObject.cpp
windows/CreaturePurchaseCard.cpp
windows/GUIClasses.cpp
windows/InfoWindows.cpp
windows/QuickRecruitmentWindow.cpp
2023-07-06 21:14:12 +02:00
windows/CHeroBackpackWindow.cpp
2024-04-23 15:21:45 +02:00
windows/CWindowWithArtifacts.cpp
2023-02-12 18:49:41 +02:00
windows/settings/GeneralOptionsTab.cpp
2023-02-18 18:58:22 +02:00
windows/settings/OtherOptionsTab.cpp
windows/settings/SettingsMainWindow.cpp
2023-02-12 18:49:41 +02:00
windows/settings/BattleOptionsTab.cpp
windows/settings/AdventureOptionsTab.cpp
2023-02-01 16:42:03 +02:00
2024-06-22 18:29:39 +02:00
ArtifactsUIController.cpp
2023-02-01 16:42:03 +02:00
CGameInfo.cpp
CMT.cpp
CPlayerInterface.cpp
PlayerLocalState.cpp
2023-02-01 16:42:03 +02:00
CServerHandler.cpp
Client.cpp
ClientCommandManager.cpp
GameChatHandler.cpp
HeroMovementController.cpp
2023-02-01 16:42:03 +02:00
NetPacksClient.cpp
NetPacksLobbyClient.cpp
ServerRunner.cpp
2012-07-01 17:27:41 +03:00
)
set(vcmiclientcommon_HEADERS
2023-02-01 16:42:03 +02:00
StdInc.h
adventureMap/AdventureMapInterface.h
adventureMap/AdventureMapShortcuts.h
adventureMap/AdventureMapWidget.h
adventureMap/AdventureState.h
adventureMap/AdventureOptions.h
2023-02-01 16:42:03 +02:00
adventureMap/CInGameConsole.h
adventureMap/CInfoBar.h
adventureMap/CList.h
adventureMap/CMinimap.h
adventureMap/CResDataBar.h
2023-03-01 17:20:05 +02:00
adventureMap/MapAudioPlayer.h
2023-08-13 12:06:35 +02:00
adventureMap/TurnTimerWidget.h
2023-02-01 16:42:03 +02:00
battle/BattleActionsController.h
battle/BattleAnimationClasses.h
battle/BattleConstants.h
battle/BattleEffectsController.h
battle/BattleFieldController.h
battle/BattleInterface.h
battle/BattleInterfaceClasses.h
battle/BattleObstacleController.h
battle/BattleProjectileController.h
battle/BattleRenderer.h
battle/BattleSiegeController.h
battle/BattleStacksController.h
battle/BattleWindow.h
battle/CreatureAnimation.h
2024-08-06 21:29:04 +02:00
battle/BattleOverlayLogVisualizer.h
2023-02-01 16:42:03 +02:00
eventsSDL/NotificationHandler.h
eventsSDL/InputHandler.h
eventsSDL/InputSourceKeyboard.h
eventsSDL/InputSourceMouse.h
eventsSDL/InputSourceText.h
eventsSDL/InputSourceTouch.h
eventsSDL/InputSourceGameController.h
2023-02-01 16:42:03 +02:00
gui/CGuiHandler.h
gui/CIntObject.h
gui/CursorHandler.h
2023-05-18 12:31:26 +02:00
gui/EventDispatcher.h
gui/EventsReceiver.h
2023-02-01 16:42:03 +02:00
gui/InterfaceObjectConfigurable.h
gui/FramerateManager.h
2023-02-02 16:22:19 +02:00
gui/MouseButton.h
gui/Shortcut.h
gui/ShortcutHandler.h
2023-02-01 16:42:03 +02:00
gui/TextAlignment.h
gui/WindowHandler.h
2023-02-01 16:42:03 +02:00
lobby/CBonusSelection.h
lobby/CCampaignInfoScreen.h
lobby/CLobbyScreen.h
lobby/CSavingScreen.h
lobby/CScenarioInfoScreen.h
lobby/CSelectionBase.h
lobby/TurnOptionsTab.h
2023-12-28 20:41:01 +02:00
lobby/ExtraOptionsTab.h
2023-02-01 16:42:03 +02:00
lobby/OptionsTab.h
lobby/OptionsTabBase.h
2023-02-01 16:42:03 +02:00
lobby/RandomMapTab.h
lobby/SelectionTab.h
mainmenu/CCampaignScreen.h
mainmenu/CMainMenu.h
mainmenu/CPrologEpilogVideo.h
mainmenu/CreditsScreen.h
2023-09-22 01:39:35 +02:00
mainmenu/CHighScoreScreen.h
2023-02-01 16:42:03 +02:00
2023-03-01 12:31:23 +02:00
mapView/IMapRendererContext.h
mapView/IMapRendererObserver.h
mapView/MapRenderer.h
mapView/MapRendererContext.h
mapView/MapRendererContextState.h
mapView/MapView.h
mapView/MapViewActions.h
mapView/MapViewCache.h
mapView/MapViewController.h
mapView/MapViewModel.h
mapView/mapHandler.h
2024-08-06 21:29:04 +02:00
mapView/MapOverlayLogVisualizer.h
2023-02-20 21:02:28 +02:00
media/CAudioBase.h
media/CEmptyVideoPlayer.h
media/CMusicHandler.h
media/CSoundHandler.h
media/CVideoHandler.h
media/IMusicPlayer.h
media/ISoundPlayer.h
media/IVideoPlayer.h
2023-02-01 16:42:03 +02:00
render/CAnimation.h
render/CBitmapHandler.h
render/CDefFile.h
render/Canvas.h
render/ColorFilter.h
render/Colors.h
render/EFont.h
2023-02-01 16:42:03 +02:00
render/Graphics.h
render/ICursor.h
render/IFont.h
render/IImage.h
render/IImageLoader.h
render/ImageLocator.h
render/IRenderHandler.h
render/IScreenHandler.h
2023-02-01 16:42:03 +02:00
renderSDL/CBitmapFont.h
renderSDL/CBitmapHanFont.h
renderSDL/CTrueTypeFont.h
renderSDL/CursorHardware.h
renderSDL/CursorSoftware.h
renderSDL/RenderHandler.h
2023-02-01 16:42:03 +02:00
renderSDL/SDLImage.h
renderSDL/SDLImageLoader.h
renderSDL/SDLRWwrapper.h
renderSDL/ScreenHandler.h
2023-02-01 16:42:03 +02:00
renderSDL/SDL_Extensions.h
renderSDL/SDL_PixelAccess.h
globalLobby/GlobalLobbyClient.h
globalLobby/GlobalLobbyDefines.h
globalLobby/GlobalLobbyInviteWindow.h
globalLobby/GlobalLobbyLoginWindow.h
2024-04-16 15:30:22 +02:00
globalLobby/GlobalLobbyRoomWindow.h
globalLobby/GlobalLobbyServerSetup.h
globalLobby/GlobalLobbyObserver.h
globalLobby/GlobalLobbyWidget.h
globalLobby/GlobalLobbyWindow.h
2023-02-01 16:42:03 +02:00
widgets/Buttons.h
2024-04-23 12:49:35 +02:00
widgets/CArtPlace.h
2023-02-01 16:42:03 +02:00
widgets/CComponent.h
2023-09-17 17:40:14 +02:00
widgets/CExchangeController.h
2023-02-01 16:42:03 +02:00
widgets/CGarrisonInt.h
widgets/CreatureCostBox.h
2023-08-25 12:52:23 +02:00
widgets/ComboBox.h
widgets/CTextInput.h
widgets/GraphicalPrimitiveCanvas.h
2023-02-01 16:42:03 +02:00
widgets/Images.h
widgets/MiscWidgets.h
widgets/ObjectLists.h
widgets/TextControls.h
2023-05-30 16:31:45 +02:00
widgets/Scrollable.h
widgets/Slider.h
2023-04-23 14:10:35 +02:00
widgets/CArtifactsOfHeroBase.h
widgets/CArtifactsOfHeroMain.h
widgets/CArtifactsOfHeroKingdom.h
widgets/CArtifactsOfHeroAltar.h
widgets/CArtifactsOfHeroMarket.h
2023-07-06 21:14:12 +02:00
widgets/CArtifactsOfHeroBackpack.h
2023-07-07 00:08:29 +02:00
widgets/RadialMenu.h
widgets/VideoWidget.h
2023-12-04 23:21:49 +02:00
widgets/markets/CAltarArtifacts.h
widgets/markets/CAltarCreatures.h
2024-02-21 20:48:14 +02:00
widgets/markets/CArtifactsBuying.h
2024-02-25 22:58:53 +02:00
widgets/markets/CArtifactsSelling.h
2024-02-03 22:59:05 +02:00
widgets/markets/CFreelancerGuild.h
2024-02-19 23:40:43 +02:00
widgets/markets/CMarketResources.h
2024-02-21 20:48:14 +02:00
widgets/markets/CTransferResources.h
2024-03-02 20:30:29 +02:00
widgets/markets/CMarketBase.h
2023-12-04 23:21:49 +02:00
widgets/markets/TradePanels.h
2023-02-01 16:42:03 +02:00
windows/CCastleInterface.h
windows/CCreatureWindow.h
windows/CExchangeWindow.h
2023-09-17 00:32:10 +02:00
windows/CHeroOverview.h
2023-02-01 16:42:03 +02:00
windows/CHeroWindow.h
windows/CKingdomInterface.h
windows/CMessage.h
2023-09-30 15:05:12 +02:00
windows/CMapOverview.h
2024-02-03 13:26:24 +02:00
windows/CMarketWindow.h
windows/CPuzzleWindow.h
2023-02-01 16:42:03 +02:00
windows/CQuestLog.h
windows/CSpellWindow.h
windows/CTutorialWindow.h
2023-02-01 16:42:03 +02:00
windows/CWindowObject.h
windows/CreaturePurchaseCard.h
windows/GUIClasses.h
windows/InfoWindows.h
windows/QuickRecruitmentWindow.h
2023-07-06 21:14:12 +02:00
windows/CHeroBackpackWindow.h
2024-04-23 15:21:45 +02:00
windows/CWindowWithArtifacts.h
2023-02-12 18:49:41 +02:00
windows/settings/GeneralOptionsTab.h
2023-02-18 18:58:22 +02:00
windows/settings/OtherOptionsTab.h
windows/settings/SettingsMainWindow.h
2023-02-12 18:49:41 +02:00
windows/settings/BattleOptionsTab.h
windows/settings/AdventureOptionsTab.h
2023-02-01 16:42:03 +02:00
2024-06-22 18:29:39 +02:00
ArtifactsUIController.h
2023-02-01 16:42:03 +02:00
CGameInfo.h
CMT.h
CPlayerInterface.h
PlayerLocalState.h
2023-02-01 16:42:03 +02:00
CServerHandler.h
Client.h
ClientCommandManager.h
ClientNetPackVisitors.h
ConditionalWait.h
HeroMovementController.h
GameChatHandler.h
LobbyClientNetPackVisitors.h
ServerRunner.h
2023-02-01 16:42:03 +02:00
resource.h
)
if(APPLE_IOS)
2024-08-15 09:19:20 +02:00
set(vcmiclientcommon_SRCS ${vcmiclientcommon_SRCS}
ios/utils.mm
)
set(vcmiclientcommon_HEADERS ${vcmiclientcommon_HEADERS}
ios/utils.h
)
endif()
2024-08-14 18:26:58 +02:00
assign_source_group(${vcmiclientcommon_SRCS} ${vcmiclientcommon_HEADERS})
2023-02-25 09:15:09 +02:00
if(ANDROID)
add_library(vcmiclientcommon SHARED ${vcmiclientcommon_SRCS} ${vcmiclientcommon_HEADERS})
set_target_properties(vcmiclientcommon PROPERTIES
OUTPUT_NAME "vcmiclient_${ANDROID_ABI}" # required by Qt
)
2023-02-25 09:15:09 +02:00
else()
add_library(vcmiclientcommon STATIC ${vcmiclientcommon_SRCS} ${vcmiclientcommon_HEADERS})
endif()
if(NOT ENABLE_STATIC_LIBS)
add_dependencies(vcmiclientcommon
BattleAI
EmptyAI
StupidAI
VCAI
)
if(ENABLE_NULLKILLER_AI)
add_dependencies(vcmiclientcommon Nullkiller)
endif()
2022-12-13 03:55:54 +02:00
endif()
2022-08-15 13:38:03 +02:00
if(APPLE_IOS)
if(ENABLE_ERM)
add_dependencies(vcmiclientcommon vcmiERM)
2022-08-15 13:38:03 +02:00
endif()
if(ENABLE_LUA)
add_dependencies(vcmiclientcommon vcmiLua)
2022-08-15 13:38:03 +02:00
endif()
endif()
2012-07-01 17:27:41 +03:00
2014-07-10 01:06:37 +03:00
if(WIN32)
set_target_properties(vcmiclientcommon
PROPERTIES
OUTPUT_NAME "VCMI_vcmiclientcommon"
PROJECT_LABEL "VCMI_vcmiclientcommon"
)
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT vcmiclientcommon)
if(NOT ENABLE_DEBUG_CONSOLE)
target_link_libraries(vcmiclientcommon SDL2::SDL2main)
endif()
target_compile_definitions(vcmiclientcommon PRIVATE WINDOWS_IGNORE_PACKING_MISMATCH)
elseif(APPLE_IOS)
target_link_libraries(vcmiclientcommon PRIVATE
2022-08-15 15:29:11 +02:00
iOS_utils
# FFmpeg
bz2
iconv
z
2022-06-27 12:01:23 +02:00
"-framework AudioToolbox"
"-framework AVFoundation"
"-framework CoreMedia"
"-framework VideoToolbox"
2021-03-02 02:56:54 +02:00
)
2014-07-10 01:06:37 +03:00
endif()
target_link_libraries(vcmiclientcommon PRIVATE vcmiservercommon)
if(ENABLE_SINGLE_APP_BUILD AND ENABLE_LAUNCHER)
target_link_libraries(vcmiclientcommon PRIVATE vcmilauncher)
endif()
target_link_libraries(vcmiclientcommon PUBLIC
vcmi SDL2::SDL2 SDL2::Image SDL2::Mixer SDL2::TTF
)
2022-09-17 13:54:22 +02:00
if(ffmpeg_LIBRARIES)
target_link_libraries(vcmiclientcommon PRIVATE
2022-06-27 12:01:23 +02:00
${ffmpeg_LIBRARIES}
2022-09-17 13:54:22 +02:00
)
else()
target_compile_definitions(vcmiclientcommon PRIVATE DISABLE_VIDEO)
2022-09-17 13:54:22 +02:00
endif()
target_include_directories(vcmiclientcommon PUBLIC
2023-01-22 20:09:37 +02:00
${CMAKE_CURRENT_SOURCE_DIR}
)
if (ffmpeg_INCLUDE_DIRS)
target_include_directories(vcmiclientcommon PRIVATE
2023-01-22 20:09:37 +02:00
${ffmpeg_INCLUDE_DIRS}
)
endif()
vcmi_set_output_dir(vcmiclientcommon "")
enable_pch(vcmiclientcommon)