Use CMAKE_INSTALL_BINDIR instead of hardcoded path

This commit is contained in:
s0dyy 2021-08-15 01:33:01 +02:00
parent 9699904299
commit ce3200b6c4
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
``` ```