]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/Install.cmake
Amend 2d48072e: Get rid of Qt resources
[lyx.git] / development / cmake / Install.cmake
index f4784e079d2f3b371ec0134d143ece8c22f85686..b3b06badbac3df0fdeec68213250d8f20b04ef9e 100755 (executable)
@@ -55,7 +55,7 @@ macro(lyx_install _what _parent_src_dir _gl_dir _file_type)
               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}")
@@ -94,7 +94,7 @@ endmacro(lyx_install)
 
 
 # language-specific-directories (like ca, de, es ...) are now globbed as "[a-z][a-z]"
-set(_all_languages "[a-z][a-z]")
+set(_all_languages "[a-z][a-z]" "[a-z][a-z]_[A-Z][A-Z]")
 
 lyx_install("data" ${TOP_SRC_DIR}/lib bind         *.bind   . ${_all_languages})
 lyx_install("data" ${TOP_SRC_DIR}/lib commands     *.def    .)
@@ -104,30 +104,33 @@ lyx_install("data" ${TOP_SRC_DIR}/lib commands     *.def    .)
 #lyx_install("data" ${TOP_SRC_DIR}/lib doc          *.txt    . ${_all_languages})
 lyx_install("data" ${TOP_SRC_DIR}/lib doc          *      biblio clipart)
 
-lyx_install("data" ${TOP_SRC_DIR}/lib doc/${_all_languages} *    clipart)
+foreach(_lang ${_all_languages})
+  lyx_install("data" ${TOP_SRC_DIR}/lib doc/${_lang} *    clipart)
+endforeach()
+
+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()
 
-set(example_subdirs ${_all_languages} pt_BR pt_PT 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(_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}"      . 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        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 "")
@@ -153,7 +156,7 @@ elseif(UNIX)
 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()
 
 if(NOT lyxrcorig STREQUAL "")