mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
cmake: fix install rules
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27828 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c5b2eb76b6
commit
ad175314c5
@ -1,8 +1,10 @@
|
|||||||
# TODO: set correct path
|
# TODO: set correct path
|
||||||
#set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
#set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||||
|
|
||||||
# the macro scans the directories "_parent_src_dir/_dir/dir_item" for *._type files
|
message(STATUS "installing to ${CMAKE_INSTALL_PREFIX}, defined by CMAKE_INSTALL_PREFIX")
|
||||||
# and installs the files in CMAKE_INSTALL_PREFIX/dir_item
|
|
||||||
|
# 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
|
# dir_item is on item of the remaining arguments
|
||||||
macro(lyx_install _parent_src_dir _dir _file_type)
|
macro(lyx_install _parent_src_dir _dir _file_type)
|
||||||
foreach(_current_dir ${ARGN})
|
foreach(_current_dir ${ARGN})
|
||||||
@ -30,9 +32,14 @@ lyx_install(${TOP_SRC_DIR}/lib scripts * .)
|
|||||||
lyx_install(${TOP_SRC_DIR}/lib templates * .)
|
lyx_install(${TOP_SRC_DIR}/lib templates * .)
|
||||||
lyx_install(${TOP_SRC_DIR}/lib tex * .)
|
lyx_install(${TOP_SRC_DIR}/lib tex * .)
|
||||||
lyx_install(${TOP_SRC_DIR}/lib ui * .)
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -73,3 +73,5 @@ endif()
|
|||||||
|
|
||||||
project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)
|
project_source_group("${GROUP_CODE}" tex2lyx_sources tex2lyx_headers)
|
||||||
|
|
||||||
|
install(TARGETS tex2lyx DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user