mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-15 17:53:04 +00:00
6c367244e3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@27831 a592a061-630c-0410-9148-cb99ea01b6c8
47 lines
2.4 KiB
CMake
Executable File
47 lines
2.4 KiB
CMake
Executable File
# TODO: set correct path
|
|
#set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
|
|
|
message(STATUS "installing to ${CMAKE_INSTALL_PREFIX}, defined by CMAKE_INSTALL_PREFIX")
|
|
|
|
# the macro scans the directories "_parent_src_dir/_dir/_current_dir" for *._file_type files
|
|
# and installs the files in CMAKE_INSTALL_PREFIX/_current_dir
|
|
# dir_item is on item of the remaining arguments
|
|
macro(lyx_install _parent_src_dir _dir _file_type)
|
|
foreach(_current_dir ${ARGN})
|
|
file(GLOB files_list ${_parent_src_dir}/${_dir}/${_current_dir}/*.${_file_type})
|
|
list(REMOVE_ITEM files_list "${_parent_src_dir}/${_dir}/${_current_dir}/.svn")
|
|
install(FILES ${files_list} DESTINATION ${_dir}/${_current_dir})
|
|
#message(STATUS "install ${_dir}/${_current_dir}: ${files_list} ")
|
|
#message(STATUS "install at ${CMAKE_INSTALL_PREFIX}/${_dir}/${_current_dir}")
|
|
endforeach(_current_dir)
|
|
endmacro(lyx_install)
|
|
|
|
|
|
lyx_install(${TOP_SRC_DIR}/lib bind bind . de fi pt sv)
|
|
lyx_install(${TOP_SRC_DIR}/lib commands def .)
|
|
lyx_install(${TOP_SRC_DIR}/lib doc lyx . ca cs da de es eu fr gl he hu it ja nl nb pl pt ro ru sk sl sv uk)
|
|
lyx_install(${TOP_SRC_DIR}/lib doc * clipart)
|
|
lyx_install(${TOP_SRC_DIR}/lib doc/de * clipart)
|
|
lyx_install(${TOP_SRC_DIR}/lib doc/es * clipart)
|
|
lyx_install(${TOP_SRC_DIR}/lib doc/fr * clipart)
|
|
lyx_install(${TOP_SRC_DIR}/lib doc/it * clipart)
|
|
lyx_install(${TOP_SRC_DIR}/lib doc/ja * clipart)
|
|
lyx_install(${TOP_SRC_DIR}/lib doc/uk * clipart)
|
|
lyx_install(${TOP_SRC_DIR}/lib examples * . ca cs da de es eu fr gl he hu it ja nl nb pl pt ro ru sk sl sv uk)
|
|
lyx_install(${TOP_SRC_DIR}/lib fonts * .)
|
|
lyx_install(${TOP_SRC_DIR}/lib images * . math commands)
|
|
lyx_install(${TOP_SRC_DIR}/lib kbd * .)
|
|
lyx_install(${TOP_SRC_DIR}/lib layouts * .)
|
|
lyx_install(${TOP_SRC_DIR}/lib lyx2lyx * .)
|
|
lyx_install(${TOP_SRC_DIR}/lib scripts * .)
|
|
lyx_install(${TOP_SRC_DIR}/lib templates * .)
|
|
lyx_install(${TOP_SRC_DIR}/lib tex * .)
|
|
lyx_install(${TOP_SRC_DIR}/lib ui * .)
|
|
lyx_install(${TOP_SRC_DIR}/lib . * .)
|
|
|
|
# TODO also get dot-less filenames in lyx_install
|
|
foreach(_file unicodesymbols encodings languages lyx2lyx/lyx2lyx)
|
|
install(FILES ${TOP_SRC_DIR}/lib/${_file} DESTINATION .)
|
|
endforeach(_file)
|
|
|
|
|