From aa7dbdef37232543c7b4955e219d18ba222bb116 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Tue, 6 May 2014 17:21:13 +0200 Subject: [PATCH] Cmake build: Add also reference to versioned lyx.svg to the resources file --- development/cmake/scripts/LyXCreateImagesResource.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/development/cmake/scripts/LyXCreateImagesResource.cmake b/development/cmake/scripts/LyXCreateImagesResource.cmake index f360d1c4a4..ead1e4af1e 100644 --- a/development/cmake/scripts/LyXCreateImagesResource.cmake +++ b/development/cmake/scripts/LyXCreateImagesResource.cmake @@ -65,6 +65,11 @@ foreach (_current_FILE ${images}) file(APPEND ${RESOURCE_NAME} " ${_abs_FILE}\n") endforeach (_current_FILE) +# copy lyx.svg too (and use versioning) +get_filename_component(_abs_FILE "${IMAGES_DIR}/lyx.svg" ABSOLUTE) +string(REGEX REPLACE "${MAPPED_DIR}" "" _file_name ${_abs_FILE}) +file(APPEND ${RESOURCE_NAME} " ${_abs_FILE}\n") + file(APPEND ${RESOURCE_NAME} "\n") file(APPEND ${RESOURCE_NAME} "\n")