cmake: add icon on Windows

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@34840 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2010-07-10 19:10:04 +00:00
parent ecc1e3c5d0
commit 4c2c54f7ea
2 changed files with 8 additions and 0 deletions

1
development/cmake/lyx.rc Normal file
View File

@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "..\\Win32\\packaging\\icons\\lyx.ico"

View File

@ -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})