mirror of
https://github.com/overte-org/overte.git
synced 2025-06-05 21:13:26 +02:00
copy the assets folder to the apk build
This commit is contained in:
parent
8a69f0de61
commit
46ffbb13aa
2 changed files with 9 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -34,3 +34,5 @@ interface/external/*/*
|
||||||
|
|
||||||
# Ignore interfaceCache for Linux users
|
# Ignore interfaceCache for Linux users
|
||||||
interface/interfaceCache/
|
interface/interfaceCache/
|
||||||
|
|
||||||
|
gvr-interface/assets/oculussig*
|
|
@ -46,6 +46,13 @@ macro(qt_create_apk)
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/res" "${ANDROID_APK_BUILD_DIR}/res"
|
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
|
# figure out where the qt dir is
|
||||||
get_filename_component(QT_DIR "${QT_CMAKE_PREFIX_PATH}/../../" ABSOLUTE)
|
get_filename_component(QT_DIR "${QT_CMAKE_PREFIX_PATH}/../../" ABSOLUTE)
|
||||||
|
|
Loading…
Reference in a new issue