diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2020-10-16 15:04:10 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2020-10-19 15:44:45 +0300 |
commit | 0db675721c8eae4afbb4cbe04ebad1169793191a (patch) | |
tree | 7d3bb491b0d172dca2f3e23f89f50656fb7e6989 /CMakeLists.txt | |
parent | bd271981d33f2733934865e0ad3b663e449548c6 (diff) |
Add installing of the desktop file to cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f2afb814..9f30f18ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -511,7 +511,10 @@ if (WIN32) elseif (SLIC3R_FHS) set(SLIC3R_FHS_RESOURCES "${CMAKE_INSTALL_FULL_DATAROOTDIR}/PrusaSlicer") install(DIRECTORY "${SLIC3R_RESOURCES_DIR}/" DESTINATION "${SLIC3R_FHS_RESOURCES}") + install(FILES src/platform/unix/PrusaSlicer.desktop DESTINATION ${SLIC3R_FHS_RESOURCES}/applications) else () + install(FILES src/platform/unix/PrusaSlicer.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/resources/applications) install(DIRECTORY "${SLIC3R_RESOURCES_DIR}/" DESTINATION "${CMAKE_INSTALL_PREFIX}/resources") endif () + configure_file(${LIBDIR}/platform/unix/fhs.hpp.in ${LIBDIR_BIN}/platform/unix/fhs.hpp) |