diff --git a/development/cmake/lyx.rc b/development/cmake/lyx.rc new file mode 100644 index 0000000000..b0a7c29433 --- /dev/null +++ b/development/cmake/lyx.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON DISCARDABLE "..\\Win32\\packaging\\icons\\lyx.ico" \ No newline at end of file diff --git a/development/cmake/src/CMakeLists.txt b/development/cmake/src/CMakeLists.txt index dd188b44fb..8fbb254cc8 100644 --- a/development/cmake/src/CMakeLists.txt +++ b/development/cmake/src/CMakeLists.txt @@ -63,11 +63,18 @@ if (LYX_VLD) set(vld_files ${CMAKE_CURRENT_BINARY_DIR}/vld.ini ${CMAKE_CURRENT_BINARY_DIR}/memory_leak_report.txt) endif() +if(WIN32) + set(FILE_RC ${CMAKE_SOURCE_DIR}/lyx.rc) + message(STATUS "Using icon defined in resource file: ${FILE_RC}") +endif() + + add_executable(${_lyx} ${WIN32_CONSOLE} ${lyx_sources} ${lyx_headers} ${vld_files} + ${FILE_RC} ) lyx_add_gcc_pch(${_lyx})