What I'm doing wrong with "BASE" in qt6_add_resources
-
Hello,
I have a problem with the parameter "BASE" in qt6_add_resources.
Whenever I specify this parameter, it gives an error message "ABSOLUTEPATH OF BASE is a directory but a file was expected."set (RESOURCES_IMAGES images/flame.png images/kettle.png images/kettleStir1.png images/kettleStir2.png images/kettleStir3.png ) qt6_add_resources( TestApp "images" BASE "misc" FILES ${RESOURCES_IMAGES} )
The files are located under: "WORKING_DIR/misc/images/xxx.png".
If I remove the parameter "BASE", the error message disappears.
Why is this and what am I doing wrong?Thanks a lot.
-
@Krulle said in What I'm doing wrong with "BASE" in qt6_add_resources:
The files are located under: "WORKING_DIR/misc/images/xxx.png".
"BASE is a path prefix that denotes the root point of the file's alias. For example, if BASE is "assets" and FILES is "assets/images/logo.png", then the alias of that file is "images/logo.png"."
Nothing on your disk, it affects the location in the resource file.
-
@Christian-Ehrlicher said in What I'm doing wrong with "BASE" in qt6_add_resources:
Nothing on your disk, it affects the location in the resource file.
Oh crap.
All right, that's an important hint that I now understand.
Thank you very much! -