How to update CmakeLists.txt for android build from qt5 to qt6?
-
I have CmakeLists.txt script to build android project with qt5. But when I build my project with this script, I get this error:
Product type is not an application, not building an APK.
Here is part of script for build settings.if(ANDROID) add_library(${module_name} SHARED ${SRC_FILES} ${QM_FILES} ) set_target_properties( ${module_name} PROPERTIES LIBRARY_OUTPUT_NAME qlcplus) else() add_executable(${module_name} WIN32 ${SRC_FILES} ${QM_FILES} ) endif()And this script is used in root CmakeLists.txt.
add_subdirectory(qmlui)How to solve this error?