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")
list(REMOVE_ITEM files_list "${_current_item}")
else()
if ("${_file_type}" STREQUAL "*")
- foreach(_mask "/\\.[^/]+$" "\\.in$" "\\.py$" "\\.patch$" "CMakeLists\\.txt$" "\\.lyx~$" "Attic")
+ foreach(_mask "/\\.[^/]+$" "\\.in$" "\\.py$" "\\.patch$" "CMakeLists\\.txt$" "\\.lyx~$")
if(_current_item MATCHES ${_mask})
#message(STATUS "removing item ${_current_item}")
list(REMOVE_ITEM files_list "${_current_item}")
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 ".")
lyx_install("data" ${TOP_SRC_DIR}/lib doc/${_lang} * clipart)
endforeach()
-set(example_subdirs ${_all_languages} Articles Curricula_Vitae External_Material "Graphics_and_Insets" Handouts Letters Modules Posters Presentations Scripts Theses Books Theses)
-lyx_install("data" ${TOP_SRC_DIR}/lib examples * . *)
-lyx_install("data" ${TOP_SRC_DIR}/lib examples/* * . *)
-lyx_install("font" ${TOP_SRC_DIR}/lib/fonts . * .)
+foreach(_sd "examples" "templates")
+ lyx_install("data" ${TOP_SRC_DIR}/lib ${_sd} * . *)
+ lyx_install("data" ${TOP_SRC_DIR}/lib ${_sd}/* * . *)
+endforeach()
+
+foreach(_sd "kbd" "layouts" "ui" ".")
+ lyx_install("data" ${TOP_SRC_DIR}/lib ${_sd} * . )
+endforeach()
+
+foreach(_sd "lyx2lyx" "scripts" ".")
+ lyx_install("data" ${TOP_SRC_DIR}/lib ${_sd} *.py . )
+endforeach()
+foreach(_script listerrors)
+ lyx_install("data" ${TOP_SRC_DIR}/lib scripts ${_script} . )
+endforeach()
+
+
foreach(_imgext "png" "svgz" "gif" "xpm")
- lyx_install("data" ${TOP_SRC_DIR}/lib images "*.${_imgext}" . ipa commands attic classic oxygen)
+ lyx_install("data" ${TOP_SRC_DIR}/lib images "*.${_imgext}" . bullets ipa classic oxygen)
lyx_install("data" ${TOP_SRC_DIR}/lib images/math "*.${_imgext}" . oxygen)
endforeach()
-lyx_install("data" ${TOP_SRC_DIR}/lib kbd * .)
-lyx_install("data" ${TOP_SRC_DIR}/lib layouts * .)
-lyx_install("data" ${TOP_SRC_DIR}/lib lyx2lyx *.py .)
-lyx_install("data" ${TOP_SRC_DIR}/lib scripts *.py .)
-lyx_install("data" ${TOP_SRC_DIR}/lib citeengines *.citeengine .)
-lyx_install("data" ${TOP_SRC_DIR}/lib . *.py .)
-lyx_install("data" ${TOP_SRC_DIR}/lib scripts *.R .)
-lyx_install("data" ${TOP_SRC_DIR}/lib templates * . *)
-lyx_install("data" ${TOP_SRC_DIR}/lib templates/* * . *)
-lyx_install("data" ${TOP_SRC_DIR}/lib xtemplates *.xtemplate .)
-lyx_install("tex" ${TOP_SRC_DIR}/lib/tex . * .)
-lyx_install("data" ${TOP_SRC_DIR}/lib ui * .)
-lyx_install("data" ${TOP_SRC_DIR}/lib . * .)
-lyx_install("data" ${TOP_SRC_DIR}/3rdparty scripts/evince_sync * .)
+lyx_install("data" ${TOP_SRC_DIR}/lib citeengines *.citeengine .)
+lyx_install("data" ${TOP_SRC_DIR}/lib scripts *.R .)
+lyx_install("data" ${TOP_SRC_DIR}/lib scripts saxon*.* .)
+lyx_install("data" ${TOP_SRC_DIR}/lib docbook * . epub3 xhtml5 xhtml lib common)
+lyx_install("data" ${TOP_SRC_DIR}/lib xtemplates *.xtemplate .)
+lyx_install("data" ${TOP_SRC_DIR}/3rdparty scripts/evince_sync * .)
+lyx_install("font" ${TOP_SRC_DIR}/lib/fonts . * .)
+lyx_install("tex" ${TOP_SRC_DIR}/lib/tex . * .)
# Install
set(lyxrcorig "")
install(FILES "${TOP_SRC_DIR}/development/MacOSX/PkgInfo" DESTINATION "${MACOSX_BUNDLE_STARTUP_COMMAND}/Contents")
endif()
- foreach(_i lyxeditor maxima inkscape)
+ foreach(_i lyxeditor maxima inkscape lilypond lilypond-book)
install(PROGRAMS "${TOP_SRC_DIR}/development/MacOSX/${_i}" DESTINATION "${LYX_UTILITIES_INSTALL_PATH}")
endforeach()
install(FILES "${TOP_SRC_DIR}/development/MacOSX/LyX.icns" DESTINATION "${LYX_DATA_SUBDIR}")
elseif(CYGWIN)
set(lyxrcorig "${TOP_SRC_DIR}/development/cygwin/lyxrc.dist.in")
elseif(WIN32)
- set(lyxrcorig "${TOP_SRC_DIR}/development/win32/lyxrc.dist.in")
+ set(lyxrcorig "${TOP_SRC_DIR}/development/Win32/lyxrc.dist.in")
endif()
+foreach(_file lyx.svg icon.aliases)
+ install(FILES ${TOP_SRC_DIR}/lib/images/${_file} DESTINATION ${LYX_DATA_SUBDIR}/images/)
+endforeach()
if(NOT lyxrcorig STREQUAL "")
configure_file("${lyxrcorig}" lyxrc.dist)