Use CMAKE_INSTALL_BINDIR instead of hardcoded path
This commit is contained in:
parent
9699904299
commit
ce3200b6c4
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue