| 1 |
# Install bash and zsh completion files. |
| 2 |
# |
| 3 |
# The install path is not detected at runtime (contrary to what the |
| 4 |
# bash-completion documentation suggests, see |
| 5 |
# <https://github.com/scop/bash-completion/blob/master/README.md>) to account |
| 6 |
# for those cases where the FlightGear installation prefix is not /usr. |
| 7 |
# See <https://sourceforge.net/p/flightgear/flightgear/merge-requests/96/#e6f4> |
| 8 |
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") |
| 9 |
install(FILES completion/fg-completion.bash DESTINATION share/bash-completion/completions RENAME fgfs) |
| 10 |
install(FILES completion/fg-completion.zsh DESTINATION share/zsh/site-functions RENAME _fgfs) |
| 11 |
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") |