shiromino-0.2.1-fix_cmake_targets.patch (1068B)
- Taken from 36d9eb04f5cbb0815e91681b67cc4e44033fb023
- diff --git a/CMakeLists.txt b/CMakeLists.txt
- index 6d8b1e6..cce87d3 100644
- --- a/CMakeLists.txt
- +++ b/CMakeLists.txt
- @@ -1,4 +1,4 @@
- -cmake_minimum_required(VERSION 3.15)
- +cmake_minimum_required(VERSION 3.16)
- project(shiromino
- DESCRIPTION "A fast-paced puzzle game with roots in the arcade."
- HOMEPAGE_URL "https://github.com/shiromino/shiromino"
- @@ -319,7 +319,8 @@ endif()
- #
- # Installation
- #
- -install(DIRECTORY data DESTINATION usr/share/${PROJECT_NAME})
- -install(FILES LICENSE.md DESTINATION usr/share/licenses/${PROJECT_NAME})
- -install(FILES shiromino.ini TYPE SYSCONF)
- -install(TARGETS ${GAME_EXECUTABLE} RUNTIME DESTINATION usr/bin)
- \ No newline at end of file
- +include(GNUInstallDirs)
- +install(DIRECTORY data DESTINATION "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}")
- +install(FILES LICENSE.md DESTINATION "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}")
- +install(FILES shiromino.ini TYPE SYSCONF)
- +install(TARGETS ${GAME_EXECUTABLE} RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
- \ No newline at end of file