[rp-stub] CMakeLists.txt: Use INSTALL(PROGRAMS) for rp-thumbnail and rp-config.

This ensures that the programs are installed as `chmod +x`.
This commit is contained in:
David Korth 2018-03-25 18:24:19 -04:00
parent 54f6bd9894
commit b51a71e846

View File

@ -37,12 +37,12 @@ INSTALL(TARGETS rp-stub
# CMake doesn't really like this, and in the Debian package build,
# it results in errors due to attempting to create a symlink in
# the real file system instead of the fakeroot.
INSTALL(FILES "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/rp-stub"
INSTALL(PROGRAMS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/rp-stub"
DESTINATION "${DIR_INSTALL_LIBEXEC}"
RENAME "rp-thumbnail"
COMPONENT "plugin"
)
INSTALL(FILES "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/rp-stub"
INSTALL(PROGRAMS "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/rp-stub"
DESTINATION "${DIR_INSTALL_EXE}"
RENAME "rp-config"
COMPONENT "plugin"