|
|
@ -1,18 +1,16 @@
|
|
|
|
project(OpenMW)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# config file
|
|
|
|
# config file
|
|
|
|
|
|
|
|
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/config.hpp.cmake" "${CMAKE_CURRENT_SOURCE_DIR}/config.hpp")
|
|
|
|
configure_file ("${OpenMW_SOURCE_DIR}/config.hpp.cmake" "${OpenMW_SOURCE_DIR}/config.hpp")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# local files
|
|
|
|
# local files
|
|
|
|
|
|
|
|
|
|
|
|
set(GAME
|
|
|
|
set(GAME
|
|
|
|
main.cpp
|
|
|
|
main.cpp
|
|
|
|
engine.cpp
|
|
|
|
engine.cpp
|
|
|
|
)
|
|
|
|
)
|
|
|
|
set(GAME_HEADER
|
|
|
|
set(GAME_HEADER
|
|
|
|
engine.hpp
|
|
|
|
engine.hpp
|
|
|
|
config.hpp)
|
|
|
|
config.hpp
|
|
|
|
|
|
|
|
)
|
|
|
|
source_group(game FILES ${GAME} ${GAME_HEADER})
|
|
|
|
source_group(game FILES ${GAME} ${GAME_HEADER})
|
|
|
|
|
|
|
|
|
|
|
|
add_openmw_dir (mwrender
|
|
|
|
add_openmw_dir (mwrender
|
|
|
@ -61,13 +59,11 @@ add_openmw_dir (mwmechanics
|
|
|
|
# Main executable
|
|
|
|
# Main executable
|
|
|
|
add_executable(openmw
|
|
|
|
add_executable(openmw
|
|
|
|
${OPENMW_LIBS} ${OPENMW_LIBS_HEADER}
|
|
|
|
${OPENMW_LIBS} ${OPENMW_LIBS_HEADER}
|
|
|
|
${CONPONENT_FILES}
|
|
|
|
${COMPONENT_FILES}
|
|
|
|
${OPENMW_FILES}
|
|
|
|
${OPENMW_FILES}
|
|
|
|
${GAME} ${GAME_HEADER}
|
|
|
|
${GAME} ${GAME_HEADER}
|
|
|
|
${APPLE_BUNDLE_RESOURCES}
|
|
|
|
${APPLE_BUNDLE_RESOURCES}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries (openmw components)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Sound stuff - here so CMake doesn't stupidly recompile EVERYTHING
|
|
|
|
# Sound stuff - here so CMake doesn't stupidly recompile EVERYTHING
|
|
|
|
# when we change the backend.
|
|
|
|
# when we change the backend.
|
|
|
@ -82,19 +78,20 @@ target_link_libraries(openmw
|
|
|
|
${SOUND_INPUT_LIBRARY}
|
|
|
|
${SOUND_INPUT_LIBRARY}
|
|
|
|
${BULLET_LIBRARIES}
|
|
|
|
${BULLET_LIBRARIES}
|
|
|
|
caelum
|
|
|
|
caelum
|
|
|
|
|
|
|
|
components
|
|
|
|
MyGUIEngine
|
|
|
|
MyGUIEngine
|
|
|
|
MyGUIOgrePlatform
|
|
|
|
MyGUIOgrePlatform
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
if(APPLE)
|
|
|
|
find_library(CARBON_FRAMEWORK Carbon)
|
|
|
|
find_library(CARBON_FRAMEWORK Carbon)
|
|
|
|
target_link_libraries(openmw ${CARBON_FRAMEWORK})
|
|
|
|
target_link_libraries(openmw ${CARBON_FRAMEWORK})
|
|
|
|
install(TARGETS openmw
|
|
|
|
install(TARGETS openmw
|
|
|
|
BUNDLE DESTINATION .
|
|
|
|
BUNDLE DESTINATION .
|
|
|
|
RUNTIME DESTINATION ../MacOS
|
|
|
|
RUNTIME DESTINATION ../MacOS
|
|
|
|
COMPONENT Runtime)
|
|
|
|
COMPONENT Runtime)
|
|
|
|
endif (APPLE)
|
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
|
|
|
|
if(DPKG_PROGRAM)
|
|
|
|
if(DPKG_PROGRAM)
|
|
|
|
INSTALL(TARGETS openmw RUNTIME DESTINATION games COMPONENT openmw)
|
|
|
|
INSTALL(TARGETS openmw RUNTIME DESTINATION games COMPONENT openmw)
|
|
|
|
endif()
|
|
|
|
endif(DPKG_PROGRAM)
|
|
|
|