2010-07-08 20:53:14 +00:00
|
|
|
project(OpenMW)
|
|
|
|
|
2011-07-08 12:39:23 +00:00
|
|
|
# config file
|
|
|
|
|
|
|
|
configure_file ("${OpenMW_SOURCE_DIR}/config.hpp.cmake" "${OpenMW_SOURCE_DIR}/config.hpp")
|
|
|
|
|
2010-07-08 20:53:14 +00:00
|
|
|
# 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
|
2011-04-28 07:39:40 +00:00
|
|
|
)
|
2010-08-03 09:14:57 +00:00
|
|
|
set(GAME_HEADER
|
2011-07-08 12:39:23 +00:00
|
|
|
engine.hpp
|
|
|
|
config.hpp)
|
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
|
|
|
|
rendering_manager mwscene cellimp interior exterior sky player
|
2011-01-08 14:11:37 +00:00
|
|
|
)
|
2010-07-08 20:53:14 +00:00
|
|
|
|
2011-10-29 11:17:04 +00:00
|
|
|
add_openmw_dir (mwinput
|
|
|
|
inputmanager
|
2010-07-08 20:53:14 +00:00
|
|
|
)
|
|
|
|
|
2011-10-29 11:17:04 +00:00
|
|
|
add_openmw_dir (mwgui
|
|
|
|
layouts text_input widgets race class birth review window_manager console dialogue
|
|
|
|
dialogue_history window_base stats_window messagebox
|
2010-07-08 20:53:14 +00:00
|
|
|
)
|
|
|
|
|
2011-10-29 11:17:04 +00:00
|
|
|
add_openmw_dir (mwdialogue
|
|
|
|
dialoguemanager journal journalentry quest topic
|
2010-08-03 11:17:31 +00:00
|
|
|
)
|
2011-10-29 11:17:04 +00:00
|
|
|
|
|
|
|
add_openmw_dir (mwscript
|
|
|
|
locals scriptmanager compilercontext interpretercontext cellextensions miscextensions
|
|
|
|
guiextensions soundextensions skyextensions statsextensions containerextensions
|
|
|
|
aiextensions controlextensions extensions globalscripts ref dialogueextensions
|
2010-08-03 11:17:31 +00:00
|
|
|
)
|
|
|
|
|
2011-10-29 11:17:04 +00:00
|
|
|
add_openmw_dir (mwsound
|
|
|
|
soundmanager
|
2010-09-30 13:42:28 +00:00
|
|
|
)
|
2011-10-29 11:17:04 +00:00
|
|
|
|
|
|
|
add_openmw_dir (mwworld
|
|
|
|
refdata world physicssystem scene environment globals class action nullaction actionteleport
|
|
|
|
containerstore actiontalk actiontake containerstore manualref containerutil player cellfunctors
|
|
|
|
cells localscripts
|
2010-07-26 10:52:32 +00:00
|
|
|
)
|
2010-07-08 20:53:14 +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
|
|
|
|
ingredient creaturelevlist itemlevlist light lockpick misc probe repair static
|
2010-07-26 09:15:38 +00:00
|
|
|
)
|
2011-10-29 11:17:04 +00:00
|
|
|
|
|
|
|
add_openmw_dir (mwmechanics
|
|
|
|
mechanicsmanager stat creaturestats magiceffects movement
|
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}
|
2011-10-22 11:55:06 +00:00
|
|
|
${OPENMW_FILES}
|
2011-10-29 11:17:04 +00:00
|
|
|
${GAME} ${GAME_HEADER}
|
2010-07-08 20:53:14 +00:00
|
|
|
${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.
|
2011-01-30 12:19:41 +00:00
|
|
|
include_directories(${SOUND_INPUT_INCLUDES} ${BULLET_INCLUDE_DIRS})
|
2010-08-13 20:30:22 +00:00
|
|
|
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}
|
2011-01-30 12:19:41 +00:00
|
|
|
${BULLET_LIBRARIES}
|
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})
|
2011-03-07 02:09:29 +00:00
|
|
|
install(TARGETS openmw
|
2011-03-12 00:00:42 +00:00
|
|
|
BUNDLE DESTINATION .
|
|
|
|
RUNTIME DESTINATION ../MacOS
|
|
|
|
COMPONENT Runtime)
|
2010-07-08 20:53:14 +00:00
|
|
|
endif (APPLE)
|
2011-01-04 19:42:09 +00:00
|
|
|
|
|
|
|
if(DPKG_PROGRAM)
|
|
|
|
INSTALL(TARGETS openmw RUNTIME DESTINATION games COMPONENT openmw)
|
|
|
|
endif()
|