diff options
Diffstat (limited to 'examples/network/http/CMakeLists.txt')
-rw-r--r-- | examples/network/http/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/network/http/CMakeLists.txt b/examples/network/http/CMakeLists.txt index 3ce82d63da..d9f50f5c9d 100644 --- a/examples/network/http/CMakeLists.txt +++ b/examples/network/http/CMakeLists.txt @@ -28,6 +28,16 @@ target_link_libraries(http PUBLIC Qt::Widgets ) +if(ANDROID AND TARGET Qt::AndroidExtras) + target_compile_definitions(http PUBLIC + REQUEST_PERMISSIONS_ON_ANDROID + ) + + target_link_libraries(http PUBLIC + Qt::AndroidExtras + ) +endif() + install(TARGETS http RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" |