new cmake build option tailored for msys2 flavor of rssguard

This commit is contained in:
Martin Rotter 2024-11-27 10:58:31 +01:00
parent 8b5f7ec1e8
commit 6f160be31c
2 changed files with 14 additions and 10 deletions

View file

@ -60,6 +60,9 @@ elseif((MINGW AND BUILD_MSYS2) OR (UNIX AND NOT APPLE AND NOT ANDROID))
install(TARGETS app install(TARGETS app
DESTINATION ${CMAKE_INSTALL_BINDIR} DESTINATION ${CMAKE_INSTALL_BINDIR}
) )
if (NOT BUILD_MSYS2)
# MSYS2 ecosystem does not need/want these files.
install(FILES ${CMAKE_BINARY_DIR}/${APP_REVERSE_NAME}.desktop install(FILES ${CMAKE_BINARY_DIR}/${APP_REVERSE_NAME}.desktop
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications
) )
@ -70,6 +73,7 @@ elseif((MINGW AND BUILD_MSYS2) OR (UNIX AND NOT APPLE AND NOT ANDROID))
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps
RENAME ${APP_REVERSE_NAME}.png RENAME ${APP_REVERSE_NAME}.png
) )
endif()
elseif(APPLE) elseif(APPLE)
install(TARGETS app install(TARGETS app
DESTINATION Contents/MacOS DESTINATION Contents/MacOS