From ce3200b6c4f0f2d2d211749f90e6c55e3967f903 Mon Sep 17 00:00:00 2001 From: s0dyy Date: Sun, 15 Aug 2021 01:33:01 +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 d6400de..18fcb62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,6 @@ qt5_create_translation(QM_FILES ${TS_FILES}) add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES}) add_dependencies(cutefish-filemanager translations) -install(TARGETS cutefish-filemanager RUNTIME DESTINATION /usr/bin) +install(TARGETS cutefish-filemanager RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) install(FILES cutefish-filemanager.desktop DESTINATION "/usr/share/applications") install(FILES ${QM_FILES} DESTINATION /usr/share/cutefish-filemanager/translations) diff --git a/README.md b/README.md index 5c9009f..dd692d1 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ sudo pacman -S extra-cmake-modules qt5-base qt5-quickcontrols2 taglib kio ```shell mkdir build cd build -cmake .. +cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. make ```