From 35cbb8647d6919f22f04201f954e01a29eac2a4a Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Wed, 28 Jun 2023 00:29:57 +0200 Subject: CMakeLists.txt: actually install Lua plugins --- CMakeLists.txt | 8 ++++++-- 1 file 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
") set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE") -- cgit v1.2.3-70-g09d2