From: Eugene Chornyi Date: Thu, 18 Jun 2020 12:31:25 +0000 (+0200) Subject: Assure that LyX and tex2lyx use src/lyxwinres.rc X-Git-Tag: lyx-2.4.0dev-acb2ca7b~731 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e501f2c4;p=features.git Assure that LyX and tex2lyx use src/lyxwinres.rc --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d7cf9c7bc6..3910d851f1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -95,7 +95,9 @@ if (LYX_VLD) endif() if(WIN32 AND NOT MINGW) - set(FILE_RC ${TOP_CMAKE_PATH}/lyx.rc) + set(FILE_RC ${TOP_SRC_DIR}/src/lyxwinres.rc) + file(COPY ${TOP_SRC_DIR}/development/Win32/packaging/icons/lyx.ico DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) + file(COPY ${TOP_SRC_DIR}/development/Win32/packaging/icons/lyx_doc.ico DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) message(STATUS "Using icon defined in resource file: ${FILE_RC}") endif() diff --git a/src/tex2lyx/CMakeLists.txt b/src/tex2lyx/CMakeLists.txt index 1927655c7f..cb129af158 100644 --- a/src/tex2lyx/CMakeLists.txt +++ b/src/tex2lyx/CMakeLists.txt @@ -29,7 +29,7 @@ include_directories((BEFORE ${ZLIB_INCLUDE_DIR}) if(WIN32 AND NOT MINGW) - set(FILE_RC ${TOP_CMAKE_PATH}/lyx.rc) + set(FILE_RC ${TOP_SRC_DIR}/src/lyxwinres.rc) message(STATUS "Using icon defined in resource file: ${FILE_RC}") endif()