CMake: make use of qt_add_plugin for plugins
Since we currently require Qt6 in master
branch, we can directly use qt_add_plugin()
so we can then easily build static plugins when needed.
TODO:
-
fix test failures.
Related: #4 (closed) !118 (closed)
Edited by Gary Wang