aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-06-28 00:29:57 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-06-28 00:29:57 +0200
commit35cbb8647d6919f22f04201f954e01a29eac2a4a (patch)
treedb668ad8f20b52a4ee803e1735122e42bf0eda43
parentf6d552766ba57f721dd617205e3b15496f2f757e (diff)
downloadhex-35cbb8647d6919f22f04201f954e01a29eac2a4a.tar.gz
hex-35cbb8647d6919f22f04201f954e01a29eac2a4a.tar.xz
hex-35cbb8647d6919f22f04201f954e01a29eac2a4a.zip
CMakeLists.txt: actually install Lua plugins
-rw-r--r--CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b54b21d..c75bc06 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,7 +42,7 @@ endif ()
set (project_libraries ${Unistring_LIBRARIES}
${Ncursesw_LIBRARIES} termo-static)
-pkg_search_module (lua lua53 lua5.3 lua-5.3 lua>=5.3)
+pkg_search_module (lua lua53 lua5.3 lua-5.3 lua54 lua5.4 lua-5.4 lua>=5.3)
option (WITH_LUA "Enable support for Lua plugins" ${lua_FOUND})
if (WITH_LUA)
if (NOT lua_FOUND)
@@ -97,6 +97,10 @@ add_threads (${PROJECT_NAME})
include (GNUInstallDirs)
install (TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR})
install (FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR})
+if (WITH_LUA)
+ install (DIRECTORY plugins
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME})
+endif ()
if (WITH_X11)
install (FILES ${PROJECT_NAME}.desktop
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
@@ -149,7 +153,7 @@ foreach (page ${project_MAN_PAGES})
endforeach ()
# CPack
-set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hex viewer")
+set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Interpreting hex viewer")
set (CPACK_PACKAGE_VENDOR "Premysl Eric Janouch")
set (CPACK_PACKAGE_CONTACT "Přemysl Eric Janouch <p@janouch.name>")
set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")