Use standard GNU install dirs and make them overridable.

This commit is contained in:
Felix Geyer
2013-04-29 22:17:31 +02:00
parent b499a6df77
commit fd18bc0330
5 changed files with 209 additions and 4 deletions

View File

@@ -140,9 +140,11 @@ elseif(APPLE)
set(PLUGIN_INSTALL_DIR ".")
set(DATA_INSTALL_DIR "${PROGNAME}.app/Contents/Resources")
else()
set(BIN_INSTALL_DIR "bin")
set(PLUGIN_INSTALL_DIR "lib/keepassx")
set(DATA_INSTALL_DIR "share/keepassx")
include(GNUInstallDirs)
set(BIN_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}")
set(PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/keepassx")
set(DATA_INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/keepassx")
endif()
if(WITH_TESTS)