1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 03:54:40 +00:00
OpenMW/apps/openmw/CMakeLists.txt

101 lines
2.6 KiB
CMake
Raw Normal View History

project(OpenMW)
# config file
configure_file ("${OpenMW_SOURCE_DIR}/config.hpp.cmake" "${OpenMW_SOURCE_DIR}/config.hpp")
# local files
set(GAME
main.cpp
engine.cpp
)
set(GAME_HEADER
engine.hpp
config.hpp)
source_group(game FILES ${GAME} ${GAME_HEADER})
2011-10-22 11:55:06 +00:00
add_openmw_dir (mwrender
renderingmanager debugging sky player animation npcanimation creatureanimation actors objects renderinginterface
)
add_openmw_dir (mwinput
inputmanager
)
add_openmw_dir (mwgui
layouts text_input widgets race class birth review window_manager console dialogue
2011-12-11 10:24:25 +00:00
dialogue_history window_base stats_window messagebox journalwindow
)
add_openmw_dir (mwdialogue
dialoguemanager journal journalentry quest topic
)
add_openmw_dir (mwscript
locals scriptmanager compilercontext interpretercontext cellextensions miscextensions
guiextensions soundextensions skyextensions statsextensions containerextensions
aiextensions controlextensions extensions globalscripts ref dialogueextensions
animationextensions
)
add_openmw_dir (mwsound
soundmanager
)
add_openmw_dir (mwworld
refdata world physicssystem scene environment globals class action nullaction actionteleport
containerstore actiontalk actiontake containerstore manualref containerutil player cellfunctors
cells localscripts
)
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
)
add_openmw_dir (mwmechanics
mechanicsmanager stat creaturestats magiceffects movement
)
# Main executable
add_executable(openmw
${OPENMW_LIBS} ${OPENMW_LIBS_HEADER}
2011-11-06 08:30:15 +00:00
${CONPONENT_FILES}
2011-10-22 11:55:06 +00:00
${OPENMW_FILES}
${GAME} ${GAME_HEADER}
${APPLE_BUNDLE_RESOURCES}
)
2011-11-06 08:30:15 +00:00
target_link_libraries (openmw components)
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})
target_link_libraries(openmw
${OGRE_LIBRARIES}
${OIS_LIBRARIES}
${Boost_LIBRARIES}
${OPENAL_LIBRARY}
${SOUND_INPUT_LIBRARY}
2011-01-30 12:19:41 +00:00
${BULLET_LIBRARIES}
caelum
MyGUIEngine
2010-08-30 09:34:13 +00:00
MyGUIOgrePlatform
)
if (APPLE)
find_library(CARBON_FRAMEWORK Carbon)
target_link_libraries(openmw ${CARBON_FRAMEWORK})
2011-03-07 02:09:29 +00:00
install(TARGETS openmw
BUNDLE DESTINATION .
RUNTIME DESTINATION ../MacOS
COMPONENT Runtime)
endif (APPLE)
if(DPKG_PROGRAM)
INSTALL(TARGETS openmw RUNTIME DESTINATION games COMPONENT openmw)
endif()