The changes in this PR are required for building the plugin as a Flatpak, which is what I'm currently trying to do. The 'normal' build process will not be affected in any way.
The new DIRECTORY line makes installation work with any build directory, not just build. (Flatpak builds in a _flatpak_build directory instead of using build.)
Using a relative DESTINATION path honors CMAKE_INSTALL_PREFIX instead of hardcoding it to /usr. (Flatpak installs into /app/extensions/Plugins as a prefix.)
Hey, thank you for creating this! <3
The changes in this PR are required for building the plugin as a Flatpak, which is what I'm currently trying to do. The 'normal' build process will not be affected in any way.
The new
DIRECTORY
line makes installation work with any build directory, not justbuild
. (Flatpak builds in a_flatpak_build
directory instead of usingbuild
.)Using a relative
DESTINATION
path honorsCMAKE_INSTALL_PREFIX
instead of hardcoding it to/usr
. (Flatpak installs into/app/extensions/Plugins
as a prefix.)