cmake: add icon on Windows

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34727 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2010-06-30 08:35:52 +00:00
parent 615d42d357
commit f3137da47c
2 changed files with 7 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

@ -78,11 +78,17 @@ if (LYX_LEAK_DETECTION)
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})