mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-12-18 10:37:53 +01:00
cmake: use ${CMAKE_SOURCE_DIR} in install() (#137)
This commit is contained in:
parent
cc06d35bc7
commit
cdf0216136
1 changed files with 3 additions and 3 deletions
|
@ -221,10 +221,10 @@ endif()
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
install(TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
install(TARGETS "${PROJECT_NAME}" RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||||
install(FILES "Platform/Linux/${PROJECT_NAME}.desktop" DESTINATION "share/applications")
|
install(FILES "${CMAKE_SOURCE_DIR}/Platform/Linux/${PROJECT_NAME}.desktop" DESTINATION "share/applications")
|
||||||
install(FILES "Platform/Linux/${PROJECT_NAME}.metainfo.xml" DESTINATION "share/metainfo")
|
install(FILES "${CMAKE_SOURCE_DIR}/Platform/Linux/${PROJECT_NAME}.metainfo.xml" DESTINATION "share/metainfo")
|
||||||
foreach(S 16 32 48 128 192)
|
foreach(S 16 32 48 128 192)
|
||||||
install(FILES "${PROJECT_NAME}/Icon_${S}x${S}.png" DESTINATION
|
install(FILES "${CMAKE_SOURCE_DIR}/${PROJECT_NAME}/Icon_${S}x${S}.png" DESTINATION
|
||||||
"share/icons/hicolor/${S}x${S}/apps" RENAME "${PROJECT_NAME}.png")
|
"share/icons/hicolor/${S}x${S}/apps" RENAME "${PROJECT_NAME}.png")
|
||||||
endforeach(S)
|
endforeach(S)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue