]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/Install.cmake
Fix screen display of parts and chapters in default classes
[lyx.git] / development / cmake / Install.cmake
index bdeea93e0bf71a1126eaf005043e5d66312d978d..7861ffae12e058c776b5c200a4ffd12a90e2fc1a 100755 (executable)
@@ -24,7 +24,8 @@ macro(lyx_install _what _parent_src_dir _gl_dir _file_type)
   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")
@@ -78,8 +79,10 @@ macro(lyx_install _what _parent_src_dir _gl_dir _file_type)
             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 ".")
@@ -120,6 +123,10 @@ 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 classic oxygen)