CMake: fix .desktop path, dedup deps

This commit is contained in:
Mihai Fufezan 2025-12-30 00:51:46 +02:00
parent 558bd1241f
commit 1373b9250d
Signed by: fufexan
SSH key fingerprint: SHA256:SdnKmEpJrDu1+2UO1QpB/Eg4HKcdDi6n+xSRqFNJVpg

View file

@ -37,12 +37,11 @@ pkg_check_modules(
deps
REQUIRED
IMPORTED_TARGET
hyprutils
hyprtoolkit
pixman-1
libdrm
hyprutils>=0.10.2
libdrm
libpci
pixman-1
)
set(CMAKE_CXX_STANDARD 23)
@ -70,7 +69,7 @@ add_executable(hyprsysteminfo ${SRCFILES})
target_link_libraries(hyprsysteminfo PkgConfig::deps)
install(
FILES contrib/hyprsysteminfo.desktop
FILES assets/install/hyprsysteminfo.desktop
DESTINATION "share/applications")
install(TARGETS hyprsysteminfo)
install(TARGETS hyprsysteminfo)