termux-packages/packages/moria/CMakeLists.txt.patch

36 lines
1.2 KiB
Diff
Raw Normal View History

2020-03-20 14:51:35 +01:00
diff -uNr umoria-5.7.11/CMakeLists.txt umoria-5.7.11.mod/CMakeLists.txt
--- umoria-5.7.11/CMakeLists.txt 2020-02-26 22:59:33.000000000 +0200
+++ umoria-5.7.11.mod/CMakeLists.txt 2020-03-20 15:49:55.823149195 +0200
@@ -161,11 +161,10 @@
2019-04-20 23:50:54 +02:00
#
# Set up the install paths and files
#
-set(build_dir "umoria")
+option(build_dir "Directory for build files" "umoria")
set(data_dir "${build_dir}/data")
2019-04-20 23:50:54 +02:00
-set(EXECUTABLE_OUTPUT_PATH ${build_dir})
2020-03-20 14:51:35 +01:00
2019-04-20 23:50:54 +02:00
# Core game data files
set(
2020-03-20 14:51:35 +01:00
@@ -237,7 +236,7 @@
set(resources ${data_files} ${support_files})
# Also add resources to the target so they are visible in the IDE
-add_executable(umoria ${source_files} ${resources})
+add_executable(moria ${source_files} ${resources})
# This is horrible, but needed bacause `find_package()` doesn't use the
2020-03-20 14:51:35 +01:00
@@ -262,4 +261,8 @@
endif ()
include_directories(${CURSES_INCLUDE_DIR})
-target_link_libraries(umoria ${CURSES_LIBRARIES})
+target_link_libraries(moria ${CURSES_LIBRARIES})
2020-03-20 14:51:35 +01:00
+
+install(TARGETS moria DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
2020-06-06 14:31:47 +02:00
+install(FILES historical/manual.md historical/faq.md LICENSE DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/moria/)
2020-03-20 14:51:35 +01:00
+INSTALL(DIRECTORY ${build_dir}/data DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/games/moria/ FILES_MATCHING PATTERN "*.txt")