From a7146e6ad833460f870d52ebf5c28fb830982464 Mon Sep 17 00:00:00 2001 From: s0dyy Date: Fri, 13 Aug 2021 00:43:34 +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 db3ee9f..2f614ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,5 +58,5 @@ qt5_create_translation(QM_FILES ${TS_FILES}) add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES}) add_dependencies(${PROJECT_NAME} translations) -install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION /usr/bin) +install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) install(FILES ${QM_FILES} DESTINATION /usr/share/${PROJECT_NAME}/translations) diff --git a/README.md b/README.md index 3aa1dfb..c45d99a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ You also need [`fishui`](https://github.com/cutefishos/fishui) and [`libcutefish ``` mkdir build cd build -cmake .. +cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. make sudo make install ```