]> git.lyx.org Git - features.git/commitdiff
Cmake build: Do not install .pdf icons created by export
authorKornel Benko <kornel@lyx.org>
Wed, 1 Apr 2015 15:26:13 +0000 (17:26 +0200)
committerKornel Benko <kornel@lyx.org>
Wed, 1 Apr 2015 15:26:13 +0000 (17:26 +0200)
Such files are polluting the lib/images directory if
exporting lyx-files containing lyx-info of type icon.

development/cmake/Install.cmake

index 15cf703480699807c7ec435aa084d2d628e1ca26..7b764962a3e42b55ad0a3b947b75a7cc379259a1 100755 (executable)
@@ -89,8 +89,10 @@ lyx_install(${TOP_SRC_DIR}/lib doc/${_all_languages} *    clipart)
 
 lyx_install(${TOP_SRC_DIR}/lib examples     *      . ${_all_languages} springer thesis)
 lyx_install(${TOP_SRC_DIR}/lib fonts        *      .)
-lyx_install(${TOP_SRC_DIR}/lib images       *      . ipa commands attic classic oxygen)
-lyx_install(${TOP_SRC_DIR}/lib images/math  *      . oxygen)
+foreach(_imgext "png" "svgz" "gif" "xpm")
+  lyx_install(${TOP_SRC_DIR}/lib images       "*.${_imgext}"      . ipa commands attic classic oxygen)
+  lyx_install(${TOP_SRC_DIR}/lib images/math  "*.${_imgext}"      . oxygen)
+endforeach()
 lyx_install(${TOP_SRC_DIR}/lib kbd          *      .)
 lyx_install(${TOP_SRC_DIR}/lib layouts      *      .)
 lyx_install(${TOP_SRC_DIR}/lib lyx2lyx      *.py   .)