Skip to content

Commit

Permalink
Optinal Gradle-less Android build.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Oct 22, 2019
1 parent ab9ee88 commit aba2e7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@ target_link_libraries(MyApplication PRIVATE
Magnum::GL
Magnum::Magnum)

# Gradle-free Android build
if(CORRADE_TARGET_ANDROID AND CMAKE_ANDROID_NDK)
include(${PROJECT_SOURCE_DIR}/toolchains/modules/UseAndroid.cmake)
android_create_apk(MyApplication main/AndroidManifest.xml)
endif()

# Make the executable a default target to build & run in Visual Studio
set_property(DIRECTORY ${PROJECT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT MyApplication)

0 comments on commit aba2e7b

Please sign in to comment.