Use CMAKE_INSTALL_BINDIR instead of hardcoded path

This commit is contained in:
s0dyy 2021-08-13 00:43:34 +02:00
parent cb3998d5f9
commit a7146e6ad8
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

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