Merge pull request #7 from s0dyy/main

Use CMAKE_INSTALL_BINDIR instead of hardcoded path
This commit is contained in:
Reion Wong 2021-08-15 07:50:46 +08:00 committed by GitHub
commit b112baf1cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
```