2010-07-08 20:53:14 +00:00
|
|
|
# local files
|
2014-08-26 15:31:34 +00:00
|
|
|
set(GAME
|
|
|
|
main.cpp
|
|
|
|
engine.cpp
|
2014-09-04 21:17:31 +00:00
|
|
|
|
2016-08-24 01:01:05 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/files/tes3mp/tes3mp.rc
|
2019-08-21 06:04:36 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/files/tes3mp/tes3mp.exe.manifest
|
2014-08-26 15:31:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (ANDROID)
|
2019-04-28 21:52:53 +00:00
|
|
|
set(GAME ${GAME} android_main.cpp)
|
2014-09-05 22:02:39 +00:00
|
|
|
endif()
|
2014-08-26 15:31:34 +00:00
|
|
|
|
2010-08-03 09:14:57 +00:00
|
|
|
set(GAME_HEADER
|
2011-07-08 12:39:23 +00:00
|
|
|
engine.hpp
|
2012-01-28 00:36:17 +00:00
|
|
|
)
|
2018-07-05 20:55:19 +00:00
|
|
|
|
2010-07-08 20:53:14 +00:00
|
|
|
source_group(game FILES ${GAME} ${GAME_HEADER})
|
|
|
|
|
2011-10-22 11:55:06 +00:00
|
|
|
add_openmw_dir (mwrender
|
2020-04-20 16:47:14 +00:00
|
|
|
actors objects renderingmanager animation rotatecontroller sky npcanimation vismask
|
2021-01-08 15:33:51 +00:00
|
|
|
creatureanimation effectmanager util renderinginterface pathgrid rendermode weaponanimation screenshotmanager
|
2020-07-11 12:21:18 +00:00
|
|
|
bulletdebugdraw globalmap characterpreview camera viewovershoulder localmap water terrainstorage ripplesimulation
|
2020-01-12 07:42:47 +00:00
|
|
|
renderbin actoranimation landmanager navmesh actorspaths recastmesh fogmanager objectpaging groundcover
|
2011-01-08 14:11:37 +00:00
|
|
|
)
|
2010-07-08 20:53:14 +00:00
|
|
|
|
2015-05-03 15:24:35 +00:00
|
|
|
add_openmw_dir (mwinput
|
2020-04-17 11:21:23 +00:00
|
|
|
actions actionmanager bindingsmanager controllermanager controlswitch
|
|
|
|
inputmanagerimp mousemanager keyboardmanager sdlmappings sensormanager
|
2015-05-03 15:24:35 +00:00
|
|
|
)
|
2010-07-08 20:53:14 +00:00
|
|
|
|
2011-10-29 11:17:04 +00:00
|
|
|
add_openmw_dir (mwgui
|
2015-05-01 00:09:57 +00:00
|
|
|
layout textinput widgets race class birth review windowmanagerimp console dialogue
|
2013-05-06 13:30:23 +00:00
|
|
|
windowbase statswindow messagebox journalwindow charactercreation
|
2019-04-01 17:47:12 +00:00
|
|
|
mapwindow windowpinnablebase tooltips scrollwindow bookwindow resourceskin
|
2012-05-24 13:57:23 +00:00
|
|
|
formatting inventorywindow container hud countdialog tradewindow settingswindow
|
2012-08-26 08:52:06 +00:00
|
|
|
confirmationdialog alchemywindow referenceinterface spellwindow mainmenu quickkeysmenu
|
2012-09-22 22:36:20 +00:00
|
|
|
itemselection spellbuyingwindow loadingscreen levelupdialog waitdialog spellcreationdialog
|
2014-09-12 03:14:21 +00:00
|
|
|
enchantingdialog trainingwindow travelwindow exposedwindow cursor spellicons
|
2013-01-27 20:07:28 +00:00
|
|
|
merchantrepair repair soulgemdialog companionwindow bookpage journalviewmodel journalbooks
|
2014-10-18 17:51:07 +00:00
|
|
|
itemmodel containeritemmodel inventoryitemmodel sortfilteritemmodel itemview
|
2014-09-12 02:27:23 +00:00
|
|
|
tradeitemmodel companionitemmodel pickpocketitemmodel controllers savegamedialog
|
2014-12-15 12:13:25 +00:00
|
|
|
recharge mode videowidget backgroundimage itemwidget screenfader debugwindow spellmodel spellview
|
2020-06-05 14:22:53 +00:00
|
|
|
draganddrop timeadvancer jailscreen itemchargeview keyboardnavigation textcolours statswatcher
|
2010-07-08 20:53:14 +00:00
|
|
|
)
|
|
|
|
|
2011-10-29 11:17:04 +00:00
|
|
|
add_openmw_dir (mwdialogue
|
2014-12-13 01:47:04 +00:00
|
|
|
dialoguemanagerimp journalimp journalentry quest topic filter selectwrapper hypertextparser keywordsearch scripttest
|
2010-08-03 11:17:31 +00:00
|
|
|
)
|
2011-10-29 11:17:04 +00:00
|
|
|
|
|
|
|
add_openmw_dir (mwscript
|
2012-08-08 13:18:55 +00:00
|
|
|
locals scriptmanagerimp compilercontext interpretercontext cellextensions miscextensions
|
2011-10-29 11:17:04 +00:00
|
|
|
guiextensions soundextensions skyextensions statsextensions containerextensions
|
|
|
|
aiextensions controlextensions extensions globalscripts ref dialogueextensions
|
2014-03-16 20:39:46 +00:00
|
|
|
animationextensions transformationextensions consoleextensions userextensions
|
2010-08-03 11:17:31 +00:00
|
|
|
)
|
|
|
|
|
2011-10-29 11:17:04 +00:00
|
|
|
add_openmw_dir (mwsound
|
2017-09-12 05:17:36 +00:00
|
|
|
soundmanagerimp openal_output ffmpeg_decoder sound sound_buffer sound_decoder sound_output
|
2020-07-01 16:37:31 +00:00
|
|
|
loudness movieaudiofactory alext efx efx-presets regionsoundselector watersoundupdater volumesettings
|
2010-09-30 13:42:28 +00:00
|
|
|
)
|
2011-10-29 11:17:04 +00:00
|
|
|
|
|
|
|
add_openmw_dir (mwworld
|
2015-04-01 15:02:15 +00:00
|
|
|
refdata worldimp scene globals class action nullaction actionteleport
|
2015-12-06 17:13:04 +00:00
|
|
|
containerstore actiontalk actiontake manualref player cellvisitors failedaction
|
2018-12-03 16:21:40 +00:00
|
|
|
cells localscripts customdata inventorystore ptr actionopen actionread actionharvest
|
2012-09-13 11:02:26 +00:00
|
|
|
actionequip timestamp actionalchemy cellstore actionapply actioneat
|
2015-09-24 13:21:42 +00:00
|
|
|
store esmstore recordcmp fallback actionrepair actionsoulgem livecellref actiondoor
|
2019-02-13 07:30:16 +00:00
|
|
|
contentloader esmloader actiontrap cellreflist cellref weather projectilemanager
|
2020-06-03 07:32:28 +00:00
|
|
|
cellpreloader datetimemanager
|
2010-07-26 10:52:32 +00:00
|
|
|
)
|
2010-07-08 20:53:14 +00:00
|
|
|
|
2015-05-09 23:09:00 +00:00
|
|
|
add_openmw_dir (mwphysics
|
2020-03-30 18:39:10 +00:00
|
|
|
physicssystem trace collisiontype actor convert object heightfield closestnotmerayresultcallback
|
2019-02-13 07:30:16 +00:00
|
|
|
contacttestresultcallback deepestnotmecontacttestresultcallback stepper movementsolver projectile
|
2021-01-07 10:02:53 +00:00
|
|
|
actorconvexcallback raycasting mtphysics contacttestwrapper projectileconvexcallback
|
2015-05-09 23:09:00 +00:00
|
|
|
)
|
|
|
|
|
2011-10-29 11:17:04 +00:00
|
|
|
add_openmw_dir (mwclass
|
|
|
|
classes activator creature npc weapon armor potion apparatus book clothing container door
|
2016-01-01 23:49:53 +00:00
|
|
|
ingredient creaturelevlist itemlevlist light lockpick misc probe repair static actor bodypart
|
2010-07-26 09:15:38 +00:00
|
|
|
)
|
2011-10-29 11:17:04 +00:00
|
|
|
|
|
|
|
add_openmw_dir (mwmechanics
|
2020-07-28 06:33:28 +00:00
|
|
|
mechanicsmanagerimp stat creaturestats magiceffects movement actorutil spelllist
|
2017-07-25 05:51:55 +00:00
|
|
|
drawstate spells activespells npcstats aipackage aisequence aipursue alchemy aiwander aitravel aifollow aiavoiddoor aibreathe
|
2020-04-04 15:28:53 +00:00
|
|
|
aicast aiescort aiface aiactivate aicombat recharge repair enchanting pathfinding pathgrid security spellcasting spellresistance
|
2015-01-05 17:52:37 +00:00
|
|
|
disease pickpocket levelledlist combat steering obstacle autocalcspell difficultyscaling aicombataction actor summoning
|
2020-06-11 21:23:30 +00:00
|
|
|
character actors objects aistate trading weaponpriority spellpriority weapontype spellutil tickableeffects
|
2020-04-27 09:03:20 +00:00
|
|
|
spellabsorption linkedeffects
|
2010-07-26 09:15:38 +00:00
|
|
|
)
|
2010-07-08 20:53:14 +00:00
|
|
|
|
2013-11-16 09:31:46 +00:00
|
|
|
add_openmw_dir (mwstate
|
2018-01-13 01:02:43 +00:00
|
|
|
statemanagerimp charactermanager character quicksavemanager
|
2010-07-26 09:15:38 +00:00
|
|
|
)
|
2010-07-08 20:53:14 +00:00
|
|
|
|
2012-04-23 08:57:16 +00:00
|
|
|
add_openmw_dir (mwbase
|
2012-08-11 15:30:55 +00:00
|
|
|
environment world scriptmanager dialoguemanager journal soundmanager mechanicsmanager
|
2013-11-19 14:38:26 +00:00
|
|
|
inputmanager windowmanager statemanager
|
2012-04-23 08:57:16 +00:00
|
|
|
)
|
|
|
|
|
2019-11-09 03:12:00 +00:00
|
|
|
add_openmw_dir (mwmp Main Networking LocalSystem LocalPlayer DedicatedPlayer PlayerList LocalActor DedicatedActor ActorList
|
|
|
|
ObjectList Worldstate Cell CellController GUIController MechanicsHelper RecordHelper ScriptController
|
2017-06-06 16:06:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_openmw_dir (mwmp/GUI GUIChat GUILogin PlayerMarkerCollection GUIDialogList TextInputDialog
|
|
|
|
)
|
|
|
|
|
2019-11-09 03:12:00 +00:00
|
|
|
add_openmw_dir(mwmp/processors BaseClientPacketProcessor SystemProcessor PlayerProcessor ObjectProcessor ActorProcessor
|
|
|
|
WorldstateProcessor ProcessorInitializer
|
|
|
|
)
|
|
|
|
|
|
|
|
add_openmw_dir (mwmp/processors/system ProcessorSystemHandshake
|
2017-05-16 16:25:31 +00:00
|
|
|
)
|
2016-01-04 12:17:30 +00:00
|
|
|
|
2017-05-29 01:43:52 +00:00
|
|
|
add_openmw_dir (mwmp/processors/actor ProcessorActorAI ProcessorActorAnimFlags ProcessorActorAnimPlay ProcessorActorAttack
|
2019-08-25 06:35:23 +00:00
|
|
|
ProcessorActorAuthority ProcessorActorCast ProcessorActorCellChange ProcessorActorDeath ProcessorActorEquipment
|
2021-04-20 01:25:14 +00:00
|
|
|
ProcessorActorList ProcessorActorPosition ProcessorActorSpeech ProcessorActorSpellsActive ProcessorActorStatsDynamic
|
|
|
|
ProcessorActorTest
|
2017-05-16 16:25:31 +00:00
|
|
|
)
|
2017-04-18 08:50:51 +00:00
|
|
|
|
2019-11-09 03:12:00 +00:00
|
|
|
add_openmw_dir (mwmp/processors/player ProcessorChatMessage ProcessorGUIMessageBox ProcessorUserDisconnected
|
2019-12-05 17:15:11 +00:00
|
|
|
ProcessorUserMyID ProcessorGameSettings ProcessorPlayerAlly ProcessorPlayerAnimFlags ProcessorPlayerAnimPlay
|
|
|
|
ProcessorPlayerAttack ProcessorPlayerAttribute ProcessorPlayerBaseInfo ProcessorPlayerBehavior ProcessorPlayerBook
|
|
|
|
ProcessorPlayerBounty ProcessorPlayerCast ProcessorPlayerCellChange ProcessorPlayerCellState ProcessorPlayerCharClass
|
2021-07-10 20:15:19 +00:00
|
|
|
ProcessorPlayerCharGen ProcessorPlayerCooldowns ProcessorPlayerDeath ProcessorPlayerDisposition ProcessorPlayerEquipment
|
|
|
|
ProcessorPlayerFaction ProcessorPlayerInput ProcessorPlayerInventory ProcessorPlayerItemUse ProcessorPlayerJail
|
|
|
|
ProcessorPlayerJournal ProcessorPlayerLevel ProcessorPlayerMiscellaneous ProcessorPlayerMomentum ProcessorPlayerPosition
|
|
|
|
ProcessorPlayerQuickKeys ProcessorPlayerReputation ProcessorPlayerResurrect ProcessorPlayerShapeshift
|
|
|
|
ProcessorPlayerSkill ProcessorPlayerSpeech ProcessorPlayerSpellbook ProcessorPlayerSpellsActive
|
|
|
|
ProcessorPlayerStatsDynamic ProcessorPlayerTopic
|
2017-07-10 09:33:53 +00:00
|
|
|
)
|
|
|
|
|
2018-07-15 00:16:04 +00:00
|
|
|
add_openmw_dir (mwmp/processors/object BaseObjectProcessor
|
|
|
|
|
|
|
|
ProcessorConsoleCommand ProcessorContainer ProcessorDoorDestination ProcessorDoorState ProcessorMusicPlay
|
|
|
|
ProcessorVideoPlay
|
|
|
|
|
2020-10-26 17:48:40 +00:00
|
|
|
ProcessorObjectActivate ProcessorObjectAnimPlay ProcessorObjectAttach ProcessorObjectDelete
|
|
|
|
ProcessorObjectDialogueChoice ProcessorObjectHit ProcessorObjectLock ProcessorObjectMove ProcessorObjectPlace
|
|
|
|
ProcessorObjectRestock ProcessorObjectRotate ProcessorObjectScale ProcessorObjectSound ProcessorObjectSpawn
|
|
|
|
ProcessorObjectState ProcessorObjectTrap ProcessorClientScriptLocal ProcessorScriptMemberShort
|
|
|
|
ProcessorObjectMiscellaneous
|
2017-05-16 16:25:31 +00:00
|
|
|
)
|
2017-04-18 08:50:51 +00:00
|
|
|
|
2020-01-04 07:56:37 +00:00
|
|
|
add_openmw_dir (mwmp/processors/worldstate ProcessorCellReset ProcessorClientScriptGlobal ProcessorClientScriptSettings
|
|
|
|
ProcessorRecordDynamic ProcessorWorldCollisionOverride ProcessorWorldDestinationOverride ProcessorWorldKillCount
|
|
|
|
ProcessorWorldMap ProcessorWorldRegionAuthority ProcessorWorldTime ProcessorWorldWeather
|
2018-05-21 04:14:08 +00:00
|
|
|
)
|
|
|
|
|
2010-07-08 20:53:14 +00:00
|
|
|
# Main executable
|
2013-02-03 12:47:55 +00:00
|
|
|
|
2014-08-04 15:49:54 +00:00
|
|
|
if (NOT ANDROID)
|
2017-09-12 04:38:49 +00:00
|
|
|
openmw_add_executable(tes3mp
|
2014-08-06 03:59:39 +00:00
|
|
|
${OPENMW_FILES}
|
|
|
|
${GAME} ${GAME_HEADER}
|
|
|
|
${APPLE_BUNDLE_RESOURCES}
|
|
|
|
)
|
2014-08-05 20:46:21 +00:00
|
|
|
else ()
|
2016-08-19 01:38:06 +00:00
|
|
|
add_library(tes3mp
|
2014-08-06 03:59:39 +00:00
|
|
|
SHARED
|
|
|
|
${OPENMW_FILES}
|
|
|
|
${GAME} ${GAME_HEADER}
|
|
|
|
)
|
2014-08-05 20:46:21 +00:00
|
|
|
endif ()
|
2011-11-06 08:30:15 +00:00
|
|
|
|
2010-08-13 20:30:22 +00:00
|
|
|
# Sound stuff - here so CMake doesn't stupidly recompile EVERYTHING
|
|
|
|
# when we change the backend.
|
2015-11-14 15:02:42 +00:00
|
|
|
include_directories(
|
2016-05-09 14:24:17 +00:00
|
|
|
${FFmpeg_INCLUDE_DIRS}
|
2015-11-14 15:02:42 +00:00
|
|
|
)
|
2010-08-13 20:30:22 +00:00
|
|
|
|
2016-08-19 01:38:06 +00:00
|
|
|
target_link_libraries(tes3mp
|
2021-03-06 19:21:23 +00:00
|
|
|
# CMake's built-in OSG finder does not use pkgconfig, so we have to
|
|
|
|
# manually ensure the order is correct for inter-library dependencies.
|
|
|
|
# This only makes a difference with `-DOPENMW_USE_SYSTEM_OSG=ON -DOSG_STATIC=ON`.
|
|
|
|
# https://gitlab.kitware.com/cmake/cmake/-/issues/21701
|
2015-11-29 18:56:43 +00:00
|
|
|
${OSGPARTICLE_LIBRARIES}
|
|
|
|
${OSGVIEWER_LIBRARIES}
|
|
|
|
${OSGGA_LIBRARIES}
|
2017-04-14 13:32:18 +00:00
|
|
|
${OSGSHADOW_LIBRARIES}
|
2021-03-06 19:21:23 +00:00
|
|
|
${OSGDB_LIBRARIES}
|
|
|
|
${OSGUTIL_LIBRARIES}
|
|
|
|
${OSG_LIBRARIES}
|
|
|
|
|
2015-06-11 21:49:27 +00:00
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
${Boost_THREAD_LIBRARY}
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
2012-01-28 00:36:17 +00:00
|
|
|
${OPENAL_LIBRARY}
|
2016-05-09 14:24:17 +00:00
|
|
|
${FFmpeg_LIBRARIES}
|
2016-06-12 20:34:53 +00:00
|
|
|
${MyGUI_LIBRARIES}
|
2013-01-08 10:19:05 +00:00
|
|
|
${SDL2_LIBRARY}
|
2018-03-13 18:58:52 +00:00
|
|
|
${RecastNavigation_LIBRARIES}
|
2015-04-19 18:14:06 +00:00
|
|
|
"osg-ffmpeg-videoplayer"
|
2012-08-12 18:45:02 +00:00
|
|
|
"oics"
|
2012-07-19 14:23:30 +00:00
|
|
|
components
|
2016-01-12 03:41:44 +00:00
|
|
|
${RakNet_LIBRARY}
|
2010-07-08 20:53:14 +00:00
|
|
|
)
|
|
|
|
|
2021-01-20 02:25:46 +00:00
|
|
|
if(OSG_STATIC)
|
|
|
|
unset(_osg_plugins_static_files)
|
|
|
|
add_library(openmw_osg_plugins INTERFACE)
|
|
|
|
foreach(_plugin ${USED_OSG_PLUGINS})
|
|
|
|
string(TOUPPER ${_plugin} _plugin_uc)
|
2021-03-06 19:21:23 +00:00
|
|
|
if(OPENMW_USE_SYSTEM_OSG)
|
2021-02-26 10:45:32 +00:00
|
|
|
list(APPEND _osg_plugins_static_files ${${_plugin_uc}_LIBRARY})
|
|
|
|
else()
|
|
|
|
list(APPEND _osg_plugins_static_files $<TARGET_FILE:${${_plugin_uc}_LIBRARY}>)
|
2021-03-06 19:21:23 +00:00
|
|
|
target_link_libraries(openmw_osg_plugins INTERFACE $<TARGET_PROPERTY:${${_plugin_uc}_LIBRARY},LINK_LIBRARIES>)
|
|
|
|
add_dependencies(openmw_osg_plugins ${${_plugin_uc}_LIBRARY})
|
2021-02-26 10:45:32 +00:00
|
|
|
endif()
|
2016-10-08 17:20:10 +00:00
|
|
|
endforeach()
|
2021-01-20 02:25:46 +00:00
|
|
|
# We use --whole-archive because OSG plugins use registration.
|
2021-01-20 19:19:36 +00:00
|
|
|
get_whole_archive_options(_opts ${_osg_plugins_static_files})
|
|
|
|
target_link_options(openmw_osg_plugins INTERFACE ${_opts})
|
2021-02-24 11:02:57 +00:00
|
|
|
target_link_libraries(tes3mp openmw_osg_plugins)
|
2021-03-06 19:21:23 +00:00
|
|
|
|
|
|
|
if(OPENMW_USE_SYSTEM_OSG)
|
|
|
|
# OSG plugin pkgconfig files are missing these dependencies.
|
|
|
|
# https://github.com/openscenegraph/OpenSceneGraph/issues/1052
|
2021-03-20 14:44:11 +00:00
|
|
|
target_link_libraries(tes3mp freetype jpeg png)
|
2021-03-06 19:21:23 +00:00
|
|
|
endif()
|
2021-01-20 02:25:46 +00:00
|
|
|
endif(OSG_STATIC)
|
2016-10-08 17:20:10 +00:00
|
|
|
|
2021-01-20 02:25:46 +00:00
|
|
|
if (ANDROID)
|
2021-02-24 11:02:57 +00:00
|
|
|
target_link_libraries(tes3mp EGL android log z)
|
2014-08-04 15:49:54 +00:00
|
|
|
endif (ANDROID)
|
|
|
|
|
2013-09-14 11:33:49 +00:00
|
|
|
if (USE_SYSTEM_TINYXML)
|
2016-08-19 01:38:06 +00:00
|
|
|
target_link_libraries(tes3mp ${TinyXML_LIBRARIES})
|
2013-09-14 11:33:49 +00:00
|
|
|
endif()
|
|
|
|
|
2013-06-27 19:45:32 +00:00
|
|
|
if (NOT UNIX)
|
2016-08-19 01:38:06 +00:00
|
|
|
target_link_libraries(tes3mp ${SDL2MAIN_LIBRARY})
|
2013-06-27 19:45:32 +00:00
|
|
|
endif()
|
|
|
|
|
2012-03-21 11:20:19 +00:00
|
|
|
# Fix for not visible pthreads functions for linker with glibc 2.15
|
2012-03-19 19:54:30 +00:00
|
|
|
if (UNIX AND NOT APPLE)
|
2016-08-19 01:38:06 +00:00
|
|
|
target_link_libraries(tes3mp ${CMAKE_THREAD_LIBS_INIT})
|
2012-03-19 19:54:30 +00:00
|
|
|
endif()
|
|
|
|
|
2012-01-28 00:36:17 +00:00
|
|
|
if(APPLE)
|
2016-10-28 13:39:27 +00:00
|
|
|
set(BUNDLE_RESOURCES_DIR "${APP_BUNDLE_DIR}/Contents/Resources")
|
|
|
|
|
|
|
|
set(OPENMW_MYGUI_FILES_ROOT ${BUNDLE_RESOURCES_DIR})
|
|
|
|
set(OPENMW_SHADERS_ROOT ${BUNDLE_RESOURCES_DIR})
|
|
|
|
|
|
|
|
add_subdirectory(../../files/ ${CMAKE_CURRENT_BINARY_DIR}/files)
|
|
|
|
|
2021-05-09 20:00:49 +00:00
|
|
|
configure_file("${OpenMW_BINARY_DIR}/defaults.bin" ${BUNDLE_RESOURCES_DIR} COPYONLY)
|
2016-10-28 13:39:27 +00:00
|
|
|
configure_file("${OpenMW_BINARY_DIR}/openmw.cfg" ${BUNDLE_RESOURCES_DIR} COPYONLY)
|
|
|
|
configure_file("${OpenMW_BINARY_DIR}/gamecontrollerdb.txt" ${BUNDLE_RESOURCES_DIR} COPYONLY)
|
|
|
|
|
|
|
|
add_custom_command(TARGET openmw
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND cp "${OpenMW_BINARY_DIR}/resources/version" "${BUNDLE_RESOURCES_DIR}/resources")
|
|
|
|
|
2012-08-20 17:05:02 +00:00
|
|
|
find_library(COCOA_FRAMEWORK Cocoa)
|
|
|
|
find_library(IOKIT_FRAMEWORK IOKit)
|
2016-08-19 01:38:06 +00:00
|
|
|
target_link_libraries(tes3mp ${COCOA_FRAMEWORK} ${IOKIT_FRAMEWORK})
|
2013-02-07 19:40:20 +00:00
|
|
|
|
2016-05-09 14:24:17 +00:00
|
|
|
if (FFmpeg_FOUND)
|
2013-02-07 19:40:20 +00:00
|
|
|
find_library(COREVIDEO_FRAMEWORK CoreVideo)
|
|
|
|
find_library(VDA_FRAMEWORK VideoDecodeAcceleration)
|
2016-11-06 17:03:35 +00:00
|
|
|
target_link_libraries(tes3mp z ${COREVIDEO_FRAMEWORK} ${VDA_FRAMEWORK})
|
2013-02-07 19:40:20 +00:00
|
|
|
endif()
|
2012-01-28 00:36:17 +00:00
|
|
|
endif(APPLE)
|
2011-01-04 19:42:09 +00:00
|
|
|
|
2012-08-19 19:23:46 +00:00
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
|
|
add_definitions (--coverage)
|
2016-08-19 01:38:06 +00:00
|
|
|
target_link_libraries(tes3mp gcov)
|
2012-08-19 19:23:46 +00:00
|
|
|
endif()
|
2014-03-05 11:11:10 +00:00
|
|
|
|
|
|
|
if (MSVC)
|
|
|
|
# Debug version needs increased number of sections beyond 2^16
|
|
|
|
if (CMAKE_CL_64)
|
|
|
|
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj")
|
|
|
|
endif (CMAKE_CL_64)
|
|
|
|
endif (MSVC)
|
2016-11-13 20:27:59 +00:00
|
|
|
|
2016-11-14 04:49:01 +00:00
|
|
|
if (WIN32)
|
2016-11-17 19:43:05 +00:00
|
|
|
INSTALL(TARGETS tes3mp RUNTIME DESTINATION ".")
|
2016-11-14 04:49:01 +00:00
|
|
|
endif (WIN32)
|