cmake: unix: install man page if it exists

This commit is contained in:
Sebastian Krzyszkowiak 2019-11-11 22:42:04 +01:00
parent 3c0f104add
commit a0dabfdeec
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -14,6 +14,10 @@ if(UNIX AND NOT APPLE AND NOT EMSCRIPTEN AND NOT ANDROID)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBSUPERDERPY_APPID}.appdata.xml)
install(FILES ${LIBSUPERDERPY_APPID}.appdata.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/metainfo/)
endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBSUPERDERPY_APPID}.appdata.xml)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBSUPERDERPY_GAMENAME}.6)
install(FILES ${LIBSUPERDERPY_GAMENAME}.6 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man6/)
endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBSUPERDERPY_GAMENAME}.6)
endif(UNIX AND NOT APPLE AND NOT EMSCRIPTEN AND NOT ANDROID)
install(DIRECTORY . DESTINATION ${DATADIR}