From 6af2da76038856de27537057264c83c8166b72f4 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Mon, 26 Oct 2020 22:36:03 -0400 Subject: [PATCH] Correct path for icons and .desktop file --- cmake/Modules/Tools.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Modules/Tools.cmake b/cmake/Modules/Tools.cmake index efb3876468..078b4ebcf4 100644 --- a/cmake/Modules/Tools.cmake +++ b/cmake/Modules/Tools.cmake @@ -50,8 +50,8 @@ if(BUILD_LAMMPS_SHELL) endif() target_link_libraries(lammps-shell PRIVATE lammps PkgConfig::READLINE) install(TARGETS lammps-shell EXPORT LAMMPS_Targets DESTINATION ${CMAKE_INSTALL_BINDIR}) - install(DIRECTORY icons DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/) - install(FILES lammps-shell.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/) + install(DIRECTORY ${LAMMPS_TOOLS_DIR}/lammps-shell/icons DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/) + install(FILES ${LAMMPS_TOOLS_DIR}/lammps-shell/lammps-shell.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/) endif()