2010-07-08 22:53:14 +02:00
|
|
|
project(OpenMW)
|
|
|
|
|
|
|
|
# local files
|
|
|
|
|
2010-08-03 11:14:57 +02:00
|
|
|
set(GAME
|
2010-07-08 22:53:14 +02:00
|
|
|
main.cpp
|
2011-01-14 19:43:51 +01:00
|
|
|
engine.cpp
|
|
|
|
path.cpp)
|
2010-08-03 11:14:57 +02:00
|
|
|
set(GAME_HEADER
|
2010-07-08 22:53:14 +02:00
|
|
|
engine.hpp)
|
|
|
|
source_group(game FILES ${GAME} ${GAME_HEADER})
|
|
|
|
|
2010-08-03 11:14:57 +02:00
|
|
|
set(GAMEREND
|
2010-07-08 22:53:14 +02:00
|
|
|
mwrender/mwscene.cpp
|
|
|
|
mwrender/cellimp.cpp
|
|
|
|
mwrender/interior.cpp
|
2010-08-20 13:33:03 +02:00
|
|
|
mwrender/exterior.cpp
|
2011-01-08 15:11:37 +01:00
|
|
|
mwrender/sky.cpp
|
|
|
|
mwrender/player.cpp
|
|
|
|
)
|
2010-08-03 11:14:57 +02:00
|
|
|
set(GAMEREND_HEADER
|
2010-07-08 22:53:14 +02:00
|
|
|
mwrender/cell.hpp
|
|
|
|
mwrender/cellimp.hpp
|
|
|
|
mwrender/mwscene.hpp
|
|
|
|
mwrender/interior.hpp
|
2010-08-20 13:33:03 +02:00
|
|
|
mwrender/exterior.hpp
|
2011-01-08 15:11:37 +01:00
|
|
|
mwrender/sky.hpp
|
|
|
|
mwrender/player.hpp
|
|
|
|
)
|
2010-08-03 11:14:57 +02:00
|
|
|
source_group(apps\\openmw\\mwrender FILES ${GAMEREND} ${GAMEREND_HEADER})
|
2010-07-08 22:53:14 +02:00
|
|
|
|
2010-07-17 19:58:15 +02:00
|
|
|
set(GAMEINPUT
|
|
|
|
mwinput/inputmanager.cpp
|
|
|
|
)
|
2010-08-03 11:14:57 +02:00
|
|
|
set(GAMEINPUT_HEADER
|
2010-07-08 22:53:14 +02:00
|
|
|
mwinput/inputmanager.hpp)
|
2010-08-03 11:14:57 +02:00
|
|
|
source_group(apps\\openmw\\mwinput FILES ${GAMEINPUT} ${GAMEINPUT_HEADER})
|
2010-07-08 22:53:14 +02:00
|
|
|
|
2010-07-20 20:23:37 +02:00
|
|
|
set(GAMEGUI_HEADER
|
2010-09-14 22:10:15 +02:00
|
|
|
mwgui/layouts.hpp
|
2010-09-14 23:17:08 +02:00
|
|
|
mwgui/text_input.hpp
|
2010-09-20 13:17:02 +02:00
|
|
|
mwgui/widgets.hpp
|
2010-09-14 22:00:57 +02:00
|
|
|
mwgui/race.hpp
|
2010-09-19 04:29:22 +02:00
|
|
|
mwgui/class.hpp
|
2010-09-21 12:34:47 +02:00
|
|
|
mwgui/birth.hpp
|
2010-10-20 21:40:32 +02:00
|
|
|
mwgui/review.hpp
|
2010-07-20 20:23:37 +02:00
|
|
|
mwgui/window_manager.hpp
|
2010-07-20 21:10:51 +02:00
|
|
|
mwgui/console.hpp
|
2010-11-03 21:21:08 +01:00
|
|
|
mwgui/dialogue.hpp
|
|
|
|
mwgui/dialogue_history.hpp
|
2010-11-06 11:25:16 +01:00
|
|
|
mwgui/window_base.hpp
|
2011-01-02 17:17:33 +01:00
|
|
|
mwgui/stats_window.hpp
|
2010-07-20 20:23:37 +02:00
|
|
|
)
|
|
|
|
set(GAMEGUI
|
|
|
|
mwgui/window_manager.cpp
|
2010-09-18 01:30:23 +02:00
|
|
|
mwgui/layouts.cpp
|
2010-07-21 10:08:38 +02:00
|
|
|
mwgui/console.cpp
|
2010-09-14 23:17:08 +02:00
|
|
|
mwgui/text_input.cpp
|
2010-09-20 13:17:02 +02:00
|
|
|
mwgui/widgets.cpp
|
2010-09-14 22:00:57 +02:00
|
|
|
mwgui/race.cpp
|
2010-09-21 12:34:47 +02:00
|
|
|
mwgui/birth.cpp
|
2010-09-19 04:29:22 +02:00
|
|
|
mwgui/class.cpp
|
2010-10-20 21:40:32 +02:00
|
|
|
mwgui/review.cpp
|
2010-11-03 21:21:08 +01:00
|
|
|
mwgui/dialogue.cpp
|
|
|
|
mwgui/dialogue_history.cpp
|
2010-11-06 11:25:16 +01:00
|
|
|
mwgui/window_base.cpp
|
2011-01-02 17:17:33 +01:00
|
|
|
mwgui/stats_window.cpp
|
2010-07-20 20:23:37 +02:00
|
|
|
)
|
|
|
|
source_group(apps\\openmw\\mwgui FILES ${GAMEGUI_HEADER} ${GAMEGUI})
|
|
|
|
|
2010-08-06 19:10:56 +02:00
|
|
|
set(GAMEDIALOGUE_HEADER
|
|
|
|
mwdialogue/dialoguemanager.hpp
|
2011-04-04 11:16:56 +02:00
|
|
|
mwdialogue/journal.hpp
|
2011-04-19 10:54:11 +02:00
|
|
|
mwdialogue/journalentry.hpp
|
2011-04-26 20:08:37 +02:00
|
|
|
mwdialogue/quest.hpp
|
2010-08-06 18:01:34 +02:00
|
|
|
)
|
2010-08-06 19:10:56 +02:00
|
|
|
set(GAMEDIALOGUE
|
|
|
|
mwdialogue/dialoguemanager.cpp
|
2011-04-04 11:16:56 +02:00
|
|
|
mwdialogue/journal.cpp
|
2011-04-19 10:54:11 +02:00
|
|
|
mwdialogue/journalentry.cpp
|
2011-04-26 20:08:37 +02:00
|
|
|
mwdialogue/quest.cpp
|
2010-08-06 18:01:34 +02:00
|
|
|
)
|
2010-08-06 19:10:56 +02:00
|
|
|
source_group(apps\\openmw\\mwdialogue FILES ${GAMEDIALOGUE_HEADER} ${GAMEDIALOGUE})
|
2010-08-06 18:01:34 +02:00
|
|
|
|
2010-07-08 22:53:14 +02:00
|
|
|
set(GAMESCRIPT
|
|
|
|
mwscript/scriptmanager.cpp
|
|
|
|
mwscript/compilercontext.cpp
|
|
|
|
mwscript/interpretercontext.cpp
|
|
|
|
mwscript/cellextensions.cpp
|
|
|
|
mwscript/miscextensions.cpp
|
|
|
|
mwscript/guiextensions.cpp
|
2010-07-10 11:48:05 +02:00
|
|
|
mwscript/soundextensions.cpp
|
2010-07-18 19:48:02 +02:00
|
|
|
mwscript/skyextensions.cpp
|
2010-07-26 23:09:37 +02:00
|
|
|
mwscript/statsextensions.cpp
|
2010-08-07 15:11:31 +02:00
|
|
|
mwscript/containerextensions.cpp
|
2010-08-22 14:49:25 +02:00
|
|
|
mwscript/aiextensions.cpp
|
2010-08-22 15:11:40 +02:00
|
|
|
mwscript/controlextensions.cpp
|
2010-07-08 22:53:14 +02:00
|
|
|
mwscript/extensions.cpp
|
|
|
|
mwscript/globalscripts.cpp
|
2011-04-04 14:49:26 +02:00
|
|
|
mwscript/dialogueextensions.cpp
|
2010-07-08 22:53:14 +02:00
|
|
|
)
|
2010-08-03 11:14:57 +02:00
|
|
|
set(GAMESCRIPT_HEADER
|
2010-07-08 22:53:14 +02:00
|
|
|
mwscript/locals.hpp
|
|
|
|
mwscript/scriptmanager.hpp
|
|
|
|
mwscript/compilercontext.hpp
|
|
|
|
mwscript/interpretercontext.hpp
|
|
|
|
mwscript/cellextensions.hpp
|
|
|
|
mwscript/miscextensions.hpp
|
|
|
|
mwscript/guiextensions.hpp
|
2010-07-10 11:48:05 +02:00
|
|
|
mwscript/soundextensions.hpp
|
2010-07-18 19:48:02 +02:00
|
|
|
mwscript/skyextensions.hpp
|
2010-07-26 23:09:37 +02:00
|
|
|
mwscript/statsextensions.hpp
|
2010-08-07 15:11:31 +02:00
|
|
|
mwscript/containerextensions.hpp
|
2010-08-22 14:49:25 +02:00
|
|
|
mwscript/aiextensions.hpp
|
2010-08-22 15:11:40 +02:00
|
|
|
mwscript/controlextensions.hpp
|
2010-07-08 22:53:14 +02:00
|
|
|
mwscript/extensions.hpp
|
|
|
|
mwscript/globalscripts.hpp
|
2010-12-31 19:09:25 +01:00
|
|
|
mwscript/ref.hpp
|
2011-04-04 14:49:26 +02:00
|
|
|
mwscript/dialogueextensions.hpp
|
2010-07-08 22:53:14 +02:00
|
|
|
)
|
2010-08-03 11:14:57 +02:00
|
|
|
source_group(apps\\openmw\\mwscript FILES ${GAMESCRIPT} ${GAMESCRIPT_HEADER})
|
2010-07-08 22:53:14 +02:00
|
|
|
|
|
|
|
set(GAMESOUND
|
2010-07-10 11:48:05 +02:00
|
|
|
mwsound/soundmanager.cpp)
|
2010-08-03 11:14:57 +02:00
|
|
|
set(GAMESOUND_HEADER
|
2010-07-10 11:48:05 +02:00
|
|
|
mwsound/soundmanager.hpp)
|
2010-08-03 11:14:57 +02:00
|
|
|
source_group(apps\\openmw\\mwsound FILES ${GAMESOUND} ${GAMESOUND_HEADER})
|
2010-07-08 22:53:14 +02:00
|
|
|
|
|
|
|
set(GAMEWORLD
|
2010-07-18 16:48:01 +02:00
|
|
|
mwworld/world.cpp
|
|
|
|
mwworld/globals.cpp
|
2010-08-03 11:14:57 +02:00
|
|
|
mwworld/class.cpp
|
2010-08-03 18:44:52 +02:00
|
|
|
mwworld/actionteleport.cpp
|
2010-08-06 18:15:46 +02:00
|
|
|
mwworld/actiontalk.cpp
|
2010-08-07 20:25:17 +02:00
|
|
|
mwworld/actiontake.cpp
|
2010-08-07 16:21:07 +02:00
|
|
|
mwworld/containerutil.cpp
|
2011-01-04 15:58:22 +01:00
|
|
|
mwworld/player.cpp
|
2011-01-27 09:29:55 +01:00
|
|
|
mwworld/doingphysics.cpp
|
2010-07-18 16:48:01 +02:00
|
|
|
)
|
2010-08-03 11:14:57 +02:00
|
|
|
set(GAMEWORLD_HEADER
|
2010-07-08 22:53:14 +02:00
|
|
|
mwworld/refdata.hpp
|
|
|
|
mwworld/world.hpp
|
|
|
|
mwworld/ptr.hpp
|
|
|
|
mwworld/environment.hpp
|
2010-07-18 16:48:01 +02:00
|
|
|
mwworld/globals.hpp
|
2010-08-03 11:14:57 +02:00
|
|
|
mwworld/class.hpp
|
2010-08-03 18:20:15 +02:00
|
|
|
mwworld/action.hpp
|
|
|
|
mwworld/nullaction.hpp
|
2010-08-03 18:44:52 +02:00
|
|
|
mwworld/actionteleport.hpp
|
2010-08-04 14:37:23 +02:00
|
|
|
mwworld/containerstore.hpp
|
2010-08-06 18:15:46 +02:00
|
|
|
mwworld/actiontalk.hpp
|
2010-08-07 20:25:17 +02:00
|
|
|
mwworld/actiontake.hpp
|
2010-08-04 14:37:23 +02:00
|
|
|
mwworld/containerstore.hpp
|
2010-08-07 15:11:31 +02:00
|
|
|
mwworld/manualref.hpp
|
2010-08-07 16:21:07 +02:00
|
|
|
mwworld/containerutil.hpp
|
2011-01-04 15:58:22 +01:00
|
|
|
mwworld/player.hpp
|
2011-01-27 09:29:55 +01:00
|
|
|
mwworld/doingphysics.hpp
|
2011-01-29 14:33:44 +01:00
|
|
|
mwworld/cellfunctors.hpp
|
2010-07-08 22:53:14 +02:00
|
|
|
)
|
2010-08-03 11:14:57 +02:00
|
|
|
source_group(apps\\openmw\\mwworld FILES ${GAMEWORLD} ${GAMEWORLD_HEADER})
|
2010-07-08 22:53:14 +02:00
|
|
|
|
2010-08-03 13:17:31 +02:00
|
|
|
set(GAMECLASS
|
|
|
|
mwclass/classes.cpp
|
|
|
|
mwclass/activator.cpp
|
|
|
|
mwclass/creature.cpp
|
|
|
|
mwclass/npc.cpp
|
2010-08-03 14:14:04 +02:00
|
|
|
mwclass/weapon.cpp
|
|
|
|
mwclass/armor.cpp
|
2010-08-03 15:24:44 +02:00
|
|
|
mwclass/potion.cpp
|
|
|
|
mwclass/apparatus.cpp
|
|
|
|
mwclass/book.cpp
|
|
|
|
mwclass/clothing.cpp
|
|
|
|
mwclass/container.cpp
|
|
|
|
mwclass/door.cpp
|
|
|
|
mwclass/ingredient.cpp
|
|
|
|
mwclass/creaturelevlist.cpp
|
|
|
|
mwclass/itemlevlist.cpp
|
|
|
|
mwclass/light.cpp
|
|
|
|
mwclass/lockpick.cpp
|
|
|
|
mwclass/misc.cpp
|
|
|
|
mwclass/probe.cpp
|
|
|
|
mwclass/repair.cpp
|
|
|
|
mwclass/static.cpp
|
2010-08-03 13:17:31 +02:00
|
|
|
)
|
|
|
|
set(GAMECLASS_HEADER
|
|
|
|
mwclass/classes.hpp
|
|
|
|
mwclass/activator.hpp
|
|
|
|
mwclass/creature.hpp
|
|
|
|
mwclass/npc.hpp
|
2010-08-03 14:14:04 +02:00
|
|
|
mwclass/weapon.hpp
|
|
|
|
mwclass/armor.hpp
|
2010-08-03 15:24:44 +02:00
|
|
|
mwclass/potion.hpp
|
|
|
|
mwclass/apparatus.hpp
|
|
|
|
mwclass/book.hpp
|
|
|
|
mwclass/clothing.hpp
|
|
|
|
mwclass/container.hpp
|
|
|
|
mwclass/door.hpp
|
|
|
|
mwclass/ingredient.hpp
|
|
|
|
mwclass/creaturelevlist.hpp
|
|
|
|
mwclass/itemlevlist.hpp
|
|
|
|
mwclass/light.hpp
|
|
|
|
mwclass/lockpick.hpp
|
|
|
|
mwclass/misc.hpp
|
|
|
|
mwclass/probe.hpp
|
|
|
|
mwclass/repair.hpp
|
|
|
|
mwclass/static.hpp
|
2010-08-06 22:20:20 +02:00
|
|
|
mwclass/containerutil.hpp
|
2010-08-03 13:17:31 +02:00
|
|
|
)
|
|
|
|
source_group(apps\\openmw\\mwclass FILES ${GAMECLASS} ${GAMECLASS_HEADER})
|
|
|
|
|
2010-07-26 11:15:38 +02:00
|
|
|
set(GAMEMECHANICS
|
2010-09-30 15:42:28 +02:00
|
|
|
mwmechanics/mechanicsmanager.cpp
|
|
|
|
mwmechanics/magiceffects.cpp
|
|
|
|
)
|
2010-08-03 11:14:57 +02:00
|
|
|
set(GAMEMECHANICS_HEADER
|
2010-07-26 12:52:32 +02:00
|
|
|
mwmechanics/mechanicsmanager.hpp
|
|
|
|
mwmechanics/stat.hpp
|
|
|
|
mwmechanics/creaturestats.hpp
|
2010-09-30 15:42:28 +02:00
|
|
|
mwmechanics/magiceffects.hpp
|
2011-02-03 11:37:17 +01:00
|
|
|
mwmechanics/movement.hpp
|
2010-07-26 12:52:32 +02:00
|
|
|
)
|
2010-08-03 11:14:57 +02:00
|
|
|
source_group(apps\\openmw\\mwmechanics FILES ${GAMEMECHANICS} ${GAMEMECHANICS_HEADER})
|
2010-07-08 22:53:14 +02:00
|
|
|
|
2010-07-26 11:15:38 +02:00
|
|
|
set(OPENMW_CPP ${GAME} ${GAMEREND} ${GAMEINPUT} ${GAMESCRIPT} ${GAMESOUND} ${GAMEGUI} ${GAMEWORLD}
|
2010-08-06 19:10:56 +02:00
|
|
|
${GAMECLASS} ${GAMEMECHANICS} ${GAMEDIALOGUE}
|
2010-07-26 11:15:38 +02:00
|
|
|
)
|
2010-07-08 22:53:14 +02:00
|
|
|
set(OPENMW_HEADER ${GAME_HEADER} ${GAMEREND_HEADER} ${GAMEINPUT_HEADER} ${GAMESCRIPT_HEADER}
|
2010-08-03 13:17:31 +02:00
|
|
|
${GAMESOUND_HEADER} ${GAMEGUI_HEADER} ${GAMEWORLD_HEADER} ${GAMECLASS_HEADER}
|
2010-08-06 19:10:56 +02:00
|
|
|
${GAMEMECHANICS_HEADER} ${GAMEDIALOG_HEADERUE}
|
2010-07-26 11:15:38 +02:00
|
|
|
)
|
2010-07-08 22:53:14 +02:00
|
|
|
|
|
|
|
# Main executable
|
|
|
|
add_executable(openmw
|
|
|
|
${COMPONENTS} ${COMPONENTS_HEADER}
|
|
|
|
${OPENMW_LIBS} ${OPENMW_LIBS_HEADER}
|
|
|
|
${OPENMW_CPP} ${OPENMW_HEADER}
|
|
|
|
${APPLE_BUNDLE_RESOURCES}
|
|
|
|
)
|
|
|
|
|
2010-08-13 22:30:22 +02:00
|
|
|
# Sound stuff - here so CMake doesn't stupidly recompile EVERYTHING
|
|
|
|
# when we change the backend.
|
2011-01-30 13:19:41 +01:00
|
|
|
include_directories(${SOUND_INPUT_INCLUDES} ${BULLET_INCLUDE_DIRS})
|
2010-08-13 22:30:22 +02:00
|
|
|
add_definitions(${SOUND_DEFINE})
|
|
|
|
|
2010-07-08 22:53:14 +02:00
|
|
|
target_link_libraries(openmw
|
|
|
|
${OGRE_LIBRARIES}
|
|
|
|
${OIS_LIBRARIES}
|
|
|
|
${Boost_LIBRARIES}
|
2010-08-12 16:13:54 +02:00
|
|
|
${OPENAL_LIBRARY}
|
2010-08-13 17:11:03 +02:00
|
|
|
${SOUND_INPUT_LIBRARY}
|
2011-01-30 13:19:41 +01:00
|
|
|
${BULLET_LIBRARIES}
|
2010-07-08 22:53:14 +02:00
|
|
|
caelum
|
|
|
|
MyGUIEngine
|
2010-08-30 10:34:13 +01:00
|
|
|
MyGUIOgrePlatform
|
2010-07-08 22:53:14 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
find_library(CARBON_FRAMEWORK Carbon)
|
|
|
|
target_link_libraries(openmw ${CARBON_FRAMEWORK})
|
2011-03-07 05:09:29 +03:00
|
|
|
install(TARGETS openmw
|
2011-03-12 03:00:42 +03:00
|
|
|
BUNDLE DESTINATION .
|
|
|
|
RUNTIME DESTINATION ../MacOS
|
|
|
|
COMPONENT Runtime)
|
2010-07-08 22:53:14 +02:00
|
|
|
endif (APPLE)
|
2011-01-04 20:42:09 +01:00
|
|
|
|
|
|
|
if(DPKG_PROGRAM)
|
|
|
|
INSTALL(TARGETS openmw RUNTIME DESTINATION games COMPONENT openmw)
|
|
|
|
endif()
|