This PR adds installation rules so Vaporizer2 can be installed with cmake --install or make install, mainly on systems that don't typically use installers, like GNU/Linux.
This requires one additional modification, included in this PR—Vaporizer2 will first look for data in ${CMAKE_INSTALL_FULL_DATAROOTDIR}/Vaporizer2 (which, by default, is /usr/local/share/Vaporizer2), before falling back to /usr/share/Vaporizer2 as usual. (To force it to use /usr/share/Vaporizer2 even if other directories exist, CMAKE_INSTALL_PREFIX can be set to /usr.)
This PR adds installation rules so Vaporizer2 can be installed with
cmake --install
ormake install
, mainly on systems that don't typically use installers, like GNU/Linux.This requires one additional modification, included in this PR—Vaporizer2 will first look for data in
${CMAKE_INSTALL_FULL_DATAROOTDIR}/Vaporizer2
(which, by default, is/usr/local/share/Vaporizer2
), before falling back to/usr/share/Vaporizer2
as usual. (To force it to use/usr/share/Vaporizer2
even if other directories exist,CMAKE_INSTALL_PREFIX
can be set to/usr
.)