Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Assets on Android using CMakeLists



  • Hey,
    how can I convert this .pro definition:

    # Assets
    ASSETS_HELP_DATA.files = \
        $$files(resources/help_*.pdf)
    
    android {
        ASSETS_HELP_DATA.path = /assets/help
        INSTALLS += ASSETS_HELP_DATA
    }
    

    to CMakeLists.txt?


    this:

    install(FILES ${__assets} DESTINATION "/assets/help")
    

    doesn't work...

    @edit
    variable '__assets' contains valid values.


Log in to reply