copy the assets folder to the apk build

This commit is contained in:
Stephen Birarda 2014-11-19 10:03:42 -08:00
parent 8a69f0de61
commit 46ffbb13aa
2 changed files with 9 additions and 0 deletions

2
.gitignore vendored
View file

@ -34,3 +34,5 @@ interface/external/*/*
# Ignore interfaceCache for Linux users
interface/interfaceCache/
gvr-interface/assets/oculussig*

View file

@ -46,6 +46,13 @@ macro(qt_create_apk)
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/res" "${ANDROID_APK_BUILD_DIR}/res"
)
# copy the assets 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}/assets" "${ANDROID_APK_BUILD_DIR}/assets"
)
# figure out where the qt dir is
get_filename_component(QT_DIR "${QT_CMAKE_PREFIX_PATH}/../../" ABSOLUTE)