summaryrefslogtreecommitdiffstats
path: root/unityplugin/GhostCubeScene
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-16 20:24:15 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-16 20:24:15 +0000
commitb627a510d3ea60b4748e171d5702bedca399bfd9 (patch)
tree0eb4d5cdd09a534940a11d96eb25a32ad1784092 /unityplugin/GhostCubeScene
parentMinor update to CMake; fixed compiler warning; updated DiligentCore submodule (diff)
downloadDiligentEngine-b627a510d3ea60b4748e171d5702bedca399bfd9.tar.gz
DiligentEngine-b627a510d3ea60b4748e171d5702bedca399bfd9.zip
CMake: updated Android build rules
Diffstat (limited to 'unityplugin/GhostCubeScene')
-rw-r--r--unityplugin/GhostCubeScene/CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/unityplugin/GhostCubeScene/CMakeLists.txt b/unityplugin/GhostCubeScene/CMakeLists.txt
index ebcc3c1..df83e23 100644
--- a/unityplugin/GhostCubeScene/CMakeLists.txt
+++ b/unityplugin/GhostCubeScene/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.10)
+cmake_minimum_required (VERSION 3.6)
project(GhostCubeScene CXX)
@@ -73,6 +73,11 @@ if(PLATFORM_WIN32 OR PLATFORM_UNIVERSAL_WINDOWS)
endif()
+elseif(PLATFORM_ANDROID)
+
+ list(APPEND ${SOURCE} src/Android/AndroidMain.cpp)
+ add_library(GhostCubeScene SHARED ${SOURCE} ${INCLUDE})
+
#elseif(APPLE)
#add_executable(GhostCubeScene MACOSX_BUNDLE Main.cpp)
#elseif(UNIX)
@@ -103,6 +108,10 @@ PRIVATE
UnityEmulator
TargetPlatform
)
+if(PLATFORM_ANDROID)
+ target_link_libraries(GhostCubeScene PRIVATE GhostCubePlugin-shared)
+endif()
+
set_common_target_properties(GhostCubeScene)
if(MSVC)