|
|
|
@ -271,11 +271,7 @@ if(QT_STATIC)
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
find_package(MyGUI REQUIRED)
|
|
|
|
|
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")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
find_package(MyGUI 3.2.1 REQUIRED)
|
|
|
|
|
find_package(Boost REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
|
find_package(OpenAL REQUIRED)
|
|
|
|
@ -285,12 +281,12 @@ include_directories("."
|
|
|
|
|
SYSTEM
|
|
|
|
|
${SDL2_INCLUDE_DIR}
|
|
|
|
|
${Boost_INCLUDE_DIR}
|
|
|
|
|
${MYGUI_INCLUDE_DIRS}
|
|
|
|
|
${MyGUI_INCLUDE_DIRS}
|
|
|
|
|
${OPENAL_INCLUDE_DIR}
|
|
|
|
|
${Bullet_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
link_directories(${SDL2_LIBRARY_DIRS} ${Boost_LIBRARY_DIRS} ${MYGUI_LIB_DIR})
|
|
|
|
|
link_directories(${SDL2_LIBRARY_DIRS} ${Boost_LIBRARY_DIRS})
|
|
|
|
|
|
|
|
|
|
if(MYGUI_STATIC)
|
|
|
|
|
add_definitions(-DMYGUI_STATIC)
|
|
|
|
|