Commit e7642f66 authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed install terget for Android examples

parent ac7e16fd
...@@ -132,5 +132,9 @@ macro(add_android_project _target _path) ...@@ -132,5 +132,9 @@ macro(add_android_project _target _path)
DEPENDS "${build_path}/bin/${_target}-debug.apk" DEPENDS "${build_path}/bin/${_target}-debug.apk"
DEPENDS "${CMAKE_BINARY_DIR}/bin/${_target}.apk" DEPENDS "${CMAKE_BINARY_DIR}/bin/${_target}.apk"
) )
if("${ARGN}" STREQUAL "INSTALL" AND INSTALL_ANDROID_EXAMPLES)
install(FILES "${CMAKE_BINARY_DIR}/bin/${_target}.apk" DESTINATION "bin" COMPONENT main)
endif()
endif() endif()
endmacro() endmacro()
\ No newline at end of file
...@@ -31,7 +31,7 @@ if (BUILD_ANDROID_EXAMPLES) ...@@ -31,7 +31,7 @@ if (BUILD_ANDROID_EXAMPLES)
foreach(sample ${android_samples}) foreach(sample ${android_samples})
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${sample}/AndroidManifest.xml") if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${sample}/AndroidManifest.xml")
add_android_project("${sample}" "${CMAKE_CURRENT_SOURCE_DIR}/${sample}") add_android_project("${sample}" "${CMAKE_CURRENT_SOURCE_DIR}/${sample}" INSTALL)
endif() endif()
endforeach() endforeach()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment