X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCMakeLists.txt;h=7ec9c83c1861ba3347d9ae23e3fa2a2328bd8a54;hb=b28599f3f7ed37f6bf79aeb0938ce61e1ebab5f5;hp=39c751f3ff285b5a8fb3d1f01fdb7fddd0ab0b5f;hpb=a506c6b73b81fac52e32b2ca31b9e92d67ae250a;p=lyx.git diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 39c751f3ff..7ec9c83c18 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -94,9 +94,14 @@ if (LYX_VLD) lyx_add_info_files(VLD ${vld_files}) endif() -if(WIN32 AND NOT MINGW) - set(FILE_RC ${TOP_CMAKE_PATH}/lyx.rc) - message(STATUS "Using icon defined in resource file: ${FILE_RC}") +if(WIN32) + if (MINGW) + set(FILE_RC_COMPILED ${TOP_CMAKE_PATH}/lyx.coff) + message(STATUS "Using icon defined in resource file: ${FILE_RC_COMPILED}") + else() + set(FILE_RC ${TOP_CMAKE_PATH}/lyx.rc) + message(STATUS "Using icon defined in resource file: ${FILE_RC}") + endif() endif() lyx_find_info_files(LyXInfoFiles ${TOP_SRC_DIR}/*) @@ -133,6 +138,7 @@ target_link_libraries(${_lyx} frontend_qt graphics support + ${FILE_RC_COMPILED} ${MYTHESLIB_LIBRARY} ${ICONV_LIBRARY} ${LYX_QTMAIN_LIBRARY}