]> git.lyx.org Git - features.git/commitdiff
cmake: fix install rules
authorPeter Kümmel <syntheticpp@gmx.net>
Tue, 9 Dec 2008 20:13:04 +0000 (20:13 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Tue, 9 Dec 2008 20:13:04 +0000 (20:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27828 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/Install.cmake
development/cmake/src/tex2lyx/CMakeLists.txt

index 4629d7e00fea650185bb32fc392a1ddd28d4470e..e96e1c25b5fa95740064be3f2b14a7a40876b6b3 100755 (executable)
@@ -1,8 +1,10 @@
 # TODO: set correct path
 #set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
 
-# the macro scans the directories "_parent_src_dir/_dir/dir_item" for *._type files 
-# and installs the files in CMAKE_INSTALL_PREFIX/dir_item
+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})
@@ -30,9 +32,14 @@ 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)
 
-
 
 
 #  
index 257c3fd1cf9217cca2756c445f07b6f8ec4bec72..476a1feac3f0e520e01ef3c8dfdf78ad0979fdb4 100644 (file)
@@ -73,3 +73,5 @@ endif()
 
 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)
+