-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
executable file
·37 lines (31 loc) · 984 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
if (APPLE AND NOT ANDROID)
cmake_minimum_required(VERSION 2.8.8)
SET(CMAKE_SIZEOF_VOID_P 4)
else()
cmake_minimum_required(VERSION 2.6)
endif ()
project(OGREDEPS)
set(CMAKE_MODULE_PATH "${OGREDEPS_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
if (WIN32)
# look for DirectX which is needed by OIS
find_package(DirectX REQUIRED)
add_definitions(-DWINVER=0x0500)
endif ()
if (APPLE AND OGRE_BUILD_PLATFORM_APPLE_IOS)
# Set build variables
set(CMAKE_OSX_SYSROOT iphoneos)
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
set(XCODE_ATTRIBUTE_SDKROOT iphoneos)
set(CMAKE_OSX_ARCHITECTURES ${ARCHS_STANDARD_32_BIT})
elseif (APPLE AND NOT OGRE_BUILD_PLATFORM_APPLE_IOS)
# Set 10.5 as the base SDK by default
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.6)
if (NOT CMAKE_OSX_ARCHITECTURES)
set(CMAKE_OSX_ARCHITECTURES ${ARCHS_STANDARD_32_64_BIT})
endif()
endif ()
if (ANDROID)
SET(TargetPlatform "Android")
SET(OGRE_PLATFORM OGRE_PLATFORM_ANDROID)
endif()
add_subdirectory(src)