Я надеюсь, что пользователи смогут сразу открыть программное обеспечение, не устанавливая ничего другого.
Я попробовал
target_link_libraries(main opencv_core490 opencv_highgui490)
Но консоль показала:
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopencv_core490: No such file or directory
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopencv_highgui490: No such file or directory
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Подробнее здесь: https://stackoverflow.com/questions/781 ... nd-package