Better linux install handling

This commit is contained in:
luisangelsm
2026-03-29 23:28:47 +02:00
parent 268b23376b
commit 4376a89876
4 changed files with 23 additions and 26 deletions

View File

@ -85,11 +85,11 @@ if(UNIX AND NOT APPLE)
# Standalone server: install server web files alongside the binary
if(BUILD_SERVER_STANDALONE)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/release/server
install(DIRECTORY "${PROJECT_SOURCE_DIR}/release/server"
DESTINATION ${CMAKE_INSTALL_DATADIR}/yacreader)
endif()
# systemd service
install(FILES yacreaderlibraryserver.service
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/yacreaderlibraryserver.service"
DESTINATION ${CMAKE_INSTALL_LIBDIR}/systemd/user)
endif()