Require META_ANDROID_PACKAGE_NAME for making Android APKs

This commit is contained in:
Martchus 2019-08-22 01:03:53 +02:00
parent f1897175e8
commit 5f115b4918
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ if (NOT EXISTS "${CMAKE_ANDROID_NDK}")
message(FATAL_ERROR "CMAKE_ANDROID_NDK must contain the path of the Android NDK.")
endif ()
if (NOT META_ANDROID_PACKAGE_NAME)
message(FATAL_ERROR "Attempt to load AndroidApk.cmake without having set ANDROID_PACKAGE_NAME.")
endif ()
# find "android" subdirectory in the source directory and check for AndroidManifest.xml
set(ANDROID_APK_SUBDIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
if (NOT IS_DIRECTORY "${ANDROID_APK_SUBDIR}")