mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 05:20:00 -08:00
Continuumatrice: isolate Linux executable and desktop identity (CMakeLists.txt)
This commit is contained in:
parent
2c44b79010
commit
81cb33571e
1 changed files with 14 additions and 5 deletions
|
|
@ -510,7 +510,7 @@ set(MIMEDIR
|
||||||
)
|
)
|
||||||
|
|
||||||
set(COCKATRICE_MAC_QM_INSTALL_DIR "cockatrice.app/Contents/Resources/translations")
|
set(COCKATRICE_MAC_QM_INSTALL_DIR "cockatrice.app/Contents/Resources/translations")
|
||||||
set(COCKATRICE_UNIX_QM_INSTALL_DIR "share/cockatrice/translations")
|
set(COCKATRICE_UNIX_QM_INSTALL_DIR "share/continuumatrice/translations")
|
||||||
set(COCKATRICE_WIN32_QM_INSTALL_DIR "translations")
|
set(COCKATRICE_WIN32_QM_INSTALL_DIR "translations")
|
||||||
|
|
||||||
qt_add_executable(
|
qt_add_executable(
|
||||||
|
|
@ -523,6 +523,12 @@ qt_add_executable(
|
||||||
MANUAL_FINALIZATION
|
MANUAL_FINALIZATION
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Keep the CMake target name for existing build dependencies and scripts while
|
||||||
|
# installing an independently named Linux application alongside MTG Cockatrice.
|
||||||
|
if(UNIX AND NOT APPLE)
|
||||||
|
set_target_properties(cockatrice PROPERTIES OUTPUT_NAME continuumatrice)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_precompile_headers(cockatrice PRIVATE "${CMAKE_SOURCE_DIR}/cmake/pch/qtwidgets_pch.h")
|
target_precompile_headers(cockatrice PRIVATE "${CMAKE_SOURCE_DIR}/cmake/pch/qtwidgets_pch.h")
|
||||||
|
|
||||||
qt_add_shaders(
|
qt_add_shaders(
|
||||||
|
|
@ -579,10 +585,13 @@ if(UNIX)
|
||||||
else()
|
else()
|
||||||
# Assume linux
|
# Assume linux
|
||||||
install(TARGETS cockatrice RUNTIME DESTINATION bin/)
|
install(TARGETS cockatrice RUNTIME DESTINATION bin/)
|
||||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.png DESTINATION ${ICONDIR}/hicolor/48x48/apps)
|
# Install using distinct names so the normal MTG client keeps its .desktop,
|
||||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.svg DESTINATION ${ICONDIR}/hicolor/scalable/apps)
|
# icon and .cod / cockatrice:// file associations unchanged.
|
||||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cockatrice.desktop DESTINATION ${DESKTOPDIR})
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.png
|
||||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cockatrice-cod.xml DESTINATION ${MIMEDIR})
|
DESTINATION ${ICONDIR}/hicolor/48x48/apps RENAME continuumatrice.png)
|
||||||
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.svg
|
||||||
|
DESTINATION ${ICONDIR}/hicolor/scalable/apps RENAME continuumatrice.svg)
|
||||||
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/continuumatrice.desktop DESTINATION ${DESKTOPDIR})
|
||||||
|
|
||||||
# Refresh the freedesktop databases so the file associations and scheme
|
# Refresh the freedesktop databases so the file associations and scheme
|
||||||
# handler register without requiring the user to run them manually. The
|
# handler register without requiring the user to run them manually. The
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue