if(NOT _dirs)
set(_dirs .)
endif()
- # Select installation dir
+ # Select installation dir(s)
+ # Mark, that _dest_subdir may be a list
if ("${_what}" STREQUAL "data")
get_data_destination(_dest_subdir)
elseif ("${_what}" STREQUAL "font")
set(_base_dir .)
endif()
- install(FILES ${files_list} DESTINATION "${_dest_subdir}${_dir}/${_base_dir}")
- #message(STATUS "Installing ${files_list} to ${_dest_subdir}${_dir}/${_base_dir}")
+ foreach(_dst ${_dest_subdir})
+ install(FILES ${files_list} DESTINATION "${_dst}${_dir}/${_base_dir}")
+ #message(STATUS "Installing ${files_list} to ${_dest_subdir}${_dir}/${_base_dir}")
+ endforeach()
endif()
if(program_list)
if(_glob_dir STREQUAL ".")
set(_dir "${LYX_DATA_SUBDIR}fonts/")
elseif(UNIX)
# at least on ubuntu
- set(_dir "${LYX_DATA_SUBDIR}fonts/")
+ # ${LYX_DATA_SUBDIR}: Satisfy lyx because GuiFontLoader.cpp searches there
+ # share/fonts: because math-editor uses system font
+ set(_dir "${LYX_DATA_SUBDIR}fonts/" "share/fonts/${_lyx}/")
else()
message(FATAL_ERROR "Unhandled platform")
endif()