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 ```