Merge pull request #13 from s0dyy/main

Use CMAKE_INSTALL_BINDIR instead of hardcoded path
This commit is contained in:
Reion Wong 2021-08-15 07:44:55 +08:00 committed by GitHub
commit fa88d64bac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -71,6 +71,6 @@ qt5_create_translation(QM_FILES ${TS_FILES})
add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES}) add_custom_target(translations DEPENDS ${QM_FILES} SOURCES ${TS_FILES})
add_dependencies(cutefish-filemanager translations) 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 cutefish-filemanager.desktop DESTINATION "/usr/share/applications")
install(FILES ${QM_FILES} DESTINATION /usr/share/cutefish-filemanager/translations) install(FILES ${QM_FILES} DESTINATION /usr/share/cutefish-filemanager/translations)

View file

@ -21,7 +21,7 @@ sudo pacman -S extra-cmake-modules qt5-base qt5-quickcontrols2 taglib kio
```shell ```shell
mkdir build mkdir build
cd build cd build
cmake .. cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make make
``` ```