|
|
@ -155,6 +155,7 @@ else()
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
# Sound setup
|
|
|
|
# Sound setup
|
|
|
|
find_package(FFmpeg REQUIRED COMPONENTS AVCODEC AVFORMAT AVUTIL SWSCALE SWRESAMPLE)
|
|
|
|
find_package(FFmpeg REQUIRED COMPONENTS AVCODEC AVFORMAT AVUTIL SWSCALE SWRESAMPLE)
|
|
|
|
# Required for building the FFmpeg headers
|
|
|
|
# Required for building the FFmpeg headers
|
|
|
@ -167,6 +168,7 @@ if (USE_SYSTEM_TINYXML)
|
|
|
|
add_definitions (-DTIXML_USE_STL)
|
|
|
|
add_definitions (-DTIXML_USE_STL)
|
|
|
|
include_directories(SYSTEM ${TinyXML_INCLUDE_DIRS})
|
|
|
|
include_directories(SYSTEM ${TinyXML_INCLUDE_DIRS})
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
ENDIF(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
|
|
|
|
|
|
|
# Platform specific
|
|
|
|
# Platform specific
|
|
|
|
if (WIN32)
|
|
|
|
if (WIN32)
|
|
|
@ -216,6 +218,7 @@ IF(BOOST_STATIC)
|
|
|
|
set(Boost_USE_STATIC_LIBS ON)
|
|
|
|
set(Boost_USE_STATIC_LIBS ON)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
find_package(OpenSceneGraph 3.3.4 REQUIRED osgDB osgViewer osgText osgGA osgAnimation osgParticle osgUtil osgFX)
|
|
|
|
find_package(OpenSceneGraph 3.3.4 REQUIRED osgDB osgViewer osgText osgGA osgAnimation osgParticle osgUtil osgFX)
|
|
|
|
|
|
|
|
|
|
|
|
include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS})
|
|
|
|
include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS})
|
|
|
@ -283,10 +286,12 @@ if (${MYGUI_VERSION} VERSION_LESS "3.2.1")
|
|
|
|
message(FATAL_ERROR "OpenMW requires MyGUI 3.2.1 or later, please install the latest version from http://mygui.info")
|
|
|
|
message(FATAL_ERROR "OpenMW requires MyGUI 3.2.1 or later, please install the latest version from http://mygui.info")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
|
|
|
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
find_package(OpenAL REQUIRED)
|
|
|
|
find_package(OpenAL REQUIRED)
|
|
|
|
find_package(Bullet 283 REQUIRED COMPONENTS BulletCollision LinearMath)
|
|
|
|
find_package(Bullet 283 REQUIRED COMPONENTS BulletCollision LinearMath)
|
|
|
|
|
|
|
|
ENDIF(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
|
|
|
|
|
|
|
|
|
|
|
include_directories("."
|
|
|
|
include_directories("."
|
|
|
|
SYSTEM
|
|
|
|
SYSTEM
|
|
|
@ -556,11 +561,13 @@ if(WIN32)
|
|
|
|
endif(WIN32)
|
|
|
|
endif(WIN32)
|
|
|
|
|
|
|
|
|
|
|
|
# Extern
|
|
|
|
# Extern
|
|
|
|
|
|
|
|
IF(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
add_subdirectory (extern/osg-ffmpeg-videoplayer)
|
|
|
|
add_subdirectory (extern/osg-ffmpeg-videoplayer)
|
|
|
|
add_subdirectory (extern/oics)
|
|
|
|
add_subdirectory (extern/oics)
|
|
|
|
if (USE_QT)
|
|
|
|
if (USE_QT)
|
|
|
|
add_subdirectory (extern/osgQt)
|
|
|
|
add_subdirectory (extern/osgQt)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
ENDIF(BUILD_OPENMW OR BUILD_OPENCS)
|
|
|
|
|
|
|
|
|
|
|
|
# Components
|
|
|
|
# Components
|
|
|
|
add_subdirectory (components)
|
|
|
|
add_subdirectory (components)
|
|
|
|