File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3117,10 +3117,16 @@ if(NOT DEV)
31173117 install (TARGETS ${TARGET_ANTIBOT} DESTINATION ${CMAKE_INSTALL_LIBDIR} /ddnet COMPONENT server)
31183118 endif ()
31193119 install (TARGETS ${TARGETS_TOOLS} DESTINATION ${CMAKE_INSTALL_LIBDIR} /ddnet COMPONENT tools)
3120- install (FILES other/ddnet.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /applications COMPONENT client)
3120+ if (TARGET game-client)
3121+ install (FILES other/ddnet.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /applications COMPONENT client)
3122+ endif ()
31213123 foreach (SIZE 16 32 48 256)
3122- install (FILES other/icons/DDNet_${SIZE} x${SIZE} x32.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /icons/hicolor/${SIZE} x${SIZE} /apps RENAME ddnet.png COMPONENT client)
3123- install (FILES other/icons/DDNet-Server_${SIZE} x${SIZE} x32.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /icons/hicolor/${SIZE} x${SIZE} /apps RENAME ddnet-server.png COMPONENT server)
3124+ if (TARGET game-client)
3125+ install (FILES other/icons/DDNet_${SIZE} x${SIZE} x32.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /icons/hicolor/${SIZE} x${SIZE} /apps RENAME ddnet.png COMPONENT client)
3126+ endif ()
3127+ if (TARGET game-server)
3128+ install (FILES other/icons/DDNet-Server_${SIZE} x${SIZE} x32.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /icons/hicolor/${SIZE} x${SIZE} /apps RENAME ddnet-server.png COMPONENT server)
3129+ endif ()
31243130 endforeach ()
31253131 foreach (file ${VULKAN_SHADER_FILE_LIST} )
31263132 install (FILES ${PROJECT_BINARY_DIR} /${file} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR} /ddnet/data/shader/vulkan COMPONENT client)
You can’t perform that action at this time.
0 commit comments