From 6cee4fd1d4971e2504353d542a3d8ec23c657c92 Mon Sep 17 00:00:00 2001 From: s0dyy Date: Fri, 13 Aug 2021 21:02:03 +0200 Subject: [PATCH] Use CMAKE_INSTALL_BINDIR instead of hardcoded path --- CMakeLists.txt | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a62bde7..6fac63a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,5 +121,5 @@ qt5_create_translation(QM_FILES ${TS_FILES}) add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES}) add_dependencies(cutefish-statusbar translations) -install(TARGETS cutefish-statusbar RUNTIME DESTINATION /usr/bin) +install(TARGETS cutefish-statusbar RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) install(FILES ${QM_FILES} DESTINATION /usr/share/cutefish-statusbar/translations) diff --git a/README.md b/README.md index 2bf0dfb..d729b72 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ sudo apt install libkf5windowsystem-dev -y ## Build ```bash -cmake .. +cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. make sudo make install ```