-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
61 lines (40 loc) · 1.95 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required (VERSION 3.0)
project ( SceneViewer )
set ( WARNINGS_AS_ERRORS true )
set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/../../Sources/CMake/Modules/" )
include ( CMake-common )
set ( DAVA_COREV2 1 )
dava_add_definitions ( -D__DAVAENGINE_COREV2__ )
find_package( DavaFramework REQUIRED COMPONENTS ALL DAVA_DISABLE_AUTOTESTS )
find_package( ScenePerformanceTests REQUIRED )
include_directories ( "Classes" )
if( MACOS )
set( PLATFORM_SPECIFIC_FOLDER "MacOSSpecific" )
elseif( IOS )
set( PLATFORM_SPECIFIC_FOLDER "iOSSpecific" )
elseif( WIN32 )
set( EXECUTABLE_FLAG WIN32 )
endif()
file ( GLOB_RECURSE XIB_LIST "${CMAKE_CURRENT_LIST_DIR}/${PLATFORM_SPECIFIC_FOLDER}/*.xib" )
define_source ( SOURCE "Classes" ${PLATFORM_SPECIFIC_FOLDER} )
set( MIX_APP_DATA "Data = ${DAVA_ROOT_DIR}/Programs/Data"
"Data = ${CMAKE_CURRENT_LIST_DIR}/Data" )
set( IOS_PLISTT ${CMAKE_CURRENT_LIST_DIR}/${PLATFORM_SPECIFIC_FOLDER}/SceneVieweriPhone-Info.plist )
set( MACOS_PLIST ${CMAKE_CURRENT_LIST_DIR}/${PLATFORM_SPECIFIC_FOLDER}/SceneViewerMacOS-Info.plist )
set( MACOS_XIB ${XIB_LIST} )
set( ANDROID_USE_STANDART_TEMLATE true )
set( ANDROID_PACKAGE "com.dava.sceneviewer" )
set( ANDROID_APP_NAME "SceneViewerApp" )
set( ANDROID_ACTIVITY_APP_NAME "SceneViewer" )
set( ANDROID_ICO ${CMAKE_CURRENT_LIST_DIR}/android/ic_launcher-web.png )
set( ADDED_SRC ${IOS_ADD_SRC} )
if (ANDROID)
# Libraries and classes to load at startup
set (ANDROID_BOOT_MODULES "crystax;c++_shared;fmodex;fmodevent;SceneViewer")
set (ANDROID_BOOT_CLASSES "com.dava.sceneviewer.SceneViewer")
endif()
if ( WINDOWS_UAP )
set ( WIN_STORE_MANIFEST_PACKAGE_GUID "C3B05534-90DF-4E75-829E-25D10C77FE49" )
endif ()
setup_main_executable()
convert_graphics()