diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-09-22 11:55:11 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-09-22 11:55:11 +0200 |
commit | 298380669781d86ecc8bd66d4961fbebf08281ca (patch) | |
tree | 1ef2b3e640e2f2dc33709dba91cdee613d9c5296 | |
parent | faf7004c13f45442a6cdbe68ba977523d6593fc7 (diff) | |
download | pianobar-windows-298380669781d86ecc8bd66d4961fbebf08281ca.tar.gz pianobar-windows-298380669781d86ecc8bd66d4961fbebf08281ca.tar.bz2 pianobar-windows-298380669781d86ecc8bd66d4961fbebf08281ca.zip |
Variable install paths (man, bin)
Slackware has its manpages in man/ instead of share/man/. Thanks to
Andrew for pointing this out.
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 241622b..e1de583 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,6 +2,8 @@ set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) set (CMAKE_C_FLAGS -Wall) set (ENABLE_MAD 0) set (ENABLE_FAAD 0) +set (BIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin CACHE PATH "bin path") +set (MAN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/man CACHE PATH "man path") # This removes a warning on newer versions of cmake if(COMMAND cmake_policy) @@ -68,5 +70,5 @@ add_executable (pianobar main.c terminal.c settings.c player.c ui.c ui_act.c target_link_libraries (pianobar piano wardrobe waitress ${FAAD_LIBRARIES} ${LIBAO_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${MAD_LIBRARIES} ${LIBM}) -install (TARGETS pianobar RUNTIME DESTINATION bin) -install (FILES pianobar.1 DESTINATION share/man/man1) +install (TARGETS pianobar RUNTIME DESTINATION ${BIN_INSTALL_DIR}) +install (FILES pianobar.1 DESTINATION ${MAN_INSTALL_DIR}/man1) |