diff --git a/cmake/android/QtCreateAPK.cmake b/cmake/android/QtCreateAPK.cmake index 7a2767e663..1e7e3c8c8a 100644 --- a/cmake/android/QtCreateAPK.cmake +++ b/cmake/android/QtCreateAPK.cmake @@ -36,6 +36,13 @@ macro(qt_create_apk) # Create "AndroidManifest.xml" configure_file("${ANDROID_THIS_DIRECTORY}/AndroidManifest.xml.in" "${ANDROID_APK_BUILD_DIR}/AndroidManifest.xml") + + # copy the res folder from the target to the apk build dir + add_custom_command( + TARGET ${TARGET_NAME} + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/res" "${ANDROID_APK_BUILD_DIR}/res" + ) # figure out where the qt dir is get_filename_component(QT_DIR "${QT_CMAKE_PREFIX_PATH}/../../" ABSOLUTE) diff --git a/gvr-interface/res/drawable/icon.png b/gvr-interface/res/drawable/icon.png new file mode 100644 index 0000000000..48697e7bf4 Binary files /dev/null and b/gvr-interface/res/drawable/icon.png differ