diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-12-16 20:24:15 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-12-16 20:24:15 +0000 |
| commit | b627a510d3ea60b4748e171d5702bedca399bfd9 (patch) | |
| tree | 0eb4d5cdd09a534940a11d96eb25a32ad1784092 /unityplugin/GhostCubeScene | |
| parent | Minor update to CMake; fixed compiler warning; updated DiligentCore submodule (diff) | |
| download | DiligentEngine-b627a510d3ea60b4748e171d5702bedca399bfd9.tar.gz DiligentEngine-b627a510d3ea60b4748e171d5702bedca399bfd9.zip | |
CMake: updated Android build rules
Diffstat (limited to 'unityplugin/GhostCubeScene')
| -rw-r--r-- | unityplugin/GhostCubeScene/CMakeLists.txt | 11 |
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) |
