strawberry-audio-player-win.../dist/CMakeLists.txt

33 lines
1.7 KiB
CMake
Raw Permalink Normal View History

2018-07-03 17:51:52 +02:00
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/scripts/maketarball.sh.in ${CMAKE_CURRENT_SOURCE_DIR}/scripts/maketarball.sh @ONLY)
2020-12-09 00:27:37 +01:00
if(RPM_DISTRO AND RPM_DATE)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/unix/strawberry.spec.in ${CMAKE_CURRENT_SOURCE_DIR}/unix/strawberry.spec @ONLY)
endif(RPM_DISTRO AND RPM_DATE)
2021-05-13 01:37:05 +02:00
if(APPLE)
if(DEFINED ENV{MACOSX_DEPLOYMENT_TARGET})
set(LSMinimumSystemVersion $ENV{MACOSX_DEPLOYMENT_TARGET})
else()
set(LSMinimumSystemVersion 12.0)
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/macos/Info.plist.in ${CMAKE_CURRENT_SOURCE_DIR}/macos/Info.plist)
2021-05-13 01:37:05 +02:00
endif(APPLE)
2021-05-13 01:37:05 +02:00
if(WIN32)
2024-10-03 22:32:51 +02:00
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/windows/windres.rc.in ${CMAKE_BINARY_DIR}/windres.rc)
2024-11-02 02:37:54 +01:00
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/windows/strawberry.nsi.in ${CMAKE_BINARY_DIR}/strawberry.nsi @ONLY)
2021-05-13 01:37:05 +02:00
endif(WIN32)
2018-02-27 18:06:05 +01:00
2021-05-13 01:37:05 +02:00
if(UNIX AND NOT APPLE)
2018-04-01 21:56:33 +02:00
install(FILES ../data/icons/48x48/strawberry.png DESTINATION share/icons/hicolor/48x48/apps/)
install(FILES ../data/icons/64x64/strawberry.png DESTINATION share/icons/hicolor/64x64/apps/)
install(FILES ../data/icons/128x128/strawberry.png DESTINATION share/icons/hicolor/128x128/apps/)
2019-09-24 00:06:37 +02:00
install(FILES unix/org.strawberrymusicplayer.strawberry.desktop DESTINATION share/applications)
install(FILES unix/org.strawberrymusicplayer.strawberry.appdata.xml DESTINATION share/metainfo)
2024-09-15 23:17:14 +02:00
install(FILES unix/strawberry.1 DESTINATION share/man/man1)
2021-05-13 01:37:05 +02:00
endif(UNIX AND NOT APPLE)
2018-07-03 17:51:52 +02:00
2021-05-13 01:37:05 +02:00
if(APPLE)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/macos/Info.plist" DESTINATION "${CMAKE_BINARY_DIR}/strawberry.app/Contents")
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/macos/strawberry.icns" DESTINATION "${CMAKE_BINARY_DIR}/strawberry.app/Contents/Resources")
endif()