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