Cmake build: Correct some installation paths

This commit is contained in:
Kornel Benko 2016-06-07 14:38:20 +02:00
parent 6f88e11da3
commit 9dd695b17a
3 changed files with 12 additions and 5 deletions

View File

@ -497,9 +497,11 @@ if(LYX_BUNDLE AND APPLE)
set(LYX_MAN_DIR "${LYX_DATA_SUBDIR}" CACHE STRING "Install location for man pages.")
else()
if(WIN32)
set(LYX_MAN_DIR "${CMAKE_BINARY_DIR}/usr/local/man/man1" CACHE STRING "Install location for man pages.")
set(LYX_MAN_DIR "${CMAKE_BINARY_DIR}/usr/local/man" CACHE STRING "Install location for man pages.")
elseif(UNIX)
set(LYX_MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man" CACHE STRING "Install location for man pages.")
else()
set(LYX_MAN_DIR "${CMAKE_INSTALL_PREFIX}/man/man1" CACHE STRING "Install location for man pages.")
set(LYX_MAN_DIR "${CMAKE_INSTALL_PREFIX}/man" CACHE STRING "Install location for man pages.")
endif()
endif()
mark_as_advanced(LYX_MAN_DIR)

View File

@ -31,9 +31,11 @@
function(get_locale_destination _result)
set(_dir)
if(WIN32)
set(_dir "Resources/locale")
# "Resources/locale"
set(_dir "${LYX_DATA_SUBDIR}locale")
elseif(APPLE)
set(_dir "locale")
# "Contents/Resources/locale"
set(_dir "${LYX_DATA_SUBDIR}locale")
elseif(UNIX)
set(_dir "share/locale")
else()
@ -47,6 +49,7 @@ function(get_data_destination _result)
if(WIN32)
set(_dir "${LYX_DATA_SUBDIR}")
elseif(APPLE)
# "Contents/Resources/"
set(_dir "${LYX_DATA_SUBDIR}")
elseif(UNIX)
set(_dir "${LYX_DATA_SUBDIR}")
@ -61,6 +64,7 @@ function(get_font_destination _result)
if(WIN32)
set(_dir "${LYX_DATA_SUBDIR}fonts/")
elseif(APPLE)
# "Contents/Resources/fonts/"
set(_dir "${LYX_DATA_SUBDIR}fonts/")
elseif(UNIX)
set(_dir "fonts/truetype/${_lyx}/")
@ -75,6 +79,7 @@ function(get_tex_destination _result)
if(WIN32)
set(_dir "${LYX_DATA_SUBDIR}tex/")
elseif(APPLE)
# "Contents/Resources/tex/"
set(_dir "${LYX_DATA_SUBDIR}tex/")
elseif(UNIX)
set(_dir "texmf/tex/latex/${_lyx}/")

View File

@ -157,7 +157,7 @@ project_source_group("${GROUP_CODE}" lyx_sources lyx_headers)
install(TARGETS ${_lyx}
BUNDLE DESTINATION . COMPONENT Runtime
RUNTIME DESTINATION bin COMPONENT Runtime)
RUNTIME DESTINATION ${LYX_UTILITIES_INSTALL_PATH} COMPONENT Runtime)
if(LYX_BUNDLE)
if(APPLE)