Skip to content
Snippets Groups Projects
Commit 7693541a authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Refs #2800. Ensure that the Windows executable has an icon embedded within it.

parent b4c38c87
No related branches found
No related tags found
No related merge requests found
...@@ -639,7 +639,7 @@ qt4_wrap_cpp ( MOCCED_FILES ${QTIPLOT_MOC_FILES} ${MANTID_MOC_FILES} ) ...@@ -639,7 +639,7 @@ qt4_wrap_cpp ( MOCCED_FILES ${QTIPLOT_MOC_FILES} ${MANTID_MOC_FILES} )
qt4_wrap_ui ( UI_HDRS ${UI_FILES} ) qt4_wrap_ui ( UI_HDRS ${UI_FILES} )
# The generated ui headers will go here: # The generated ui headers will go here:
include_directories ( ${CMAKE_CURRENT_BINARY_DIR} ) include_directories ( ${CMAKE_CURRENT_BINARY_DIR} )
# Internal icon links
qt4_add_resources ( RES_FILES ${PROJECT_SOURCE_DIR}/Images/images.qrc ) qt4_add_resources ( RES_FILES ${PROJECT_SOURCE_DIR}/Images/images.qrc )
########################################################################### ###########################################################################
...@@ -695,7 +695,9 @@ set ( INC_FILES ${QTIPLOT_HDRS} ${MANTID_HDRS} ) ...@@ -695,7 +695,9 @@ set ( INC_FILES ${QTIPLOT_HDRS} ${MANTID_HDRS} )
# modes. On VS2010 this requires the WIN32 argument and the additional # modes. On VS2010 this requires the WIN32 argument and the additional
# linker arguments as we don't use WinMain as an entry point. # linker arguments as we don't use WinMain as an entry point.
if( WIN32 ) if( WIN32 )
set( EXE_FLAG WIN32 ) set ( EXE_FLAG WIN32 )
# Also include the icon's rc file so that it is embedded in the exe
set ( MANTID_SRCS "${MANTID_SRCS} icons/MantidPlotDesktop.rc" )
endif( WIN32 ) endif( WIN32 )
add_executable ( MantidPlot ${EXE_FLAG} ${SRC_FILES} ${INC_FILES} add_executable ( MantidPlot ${EXE_FLAG} ${SRC_FILES} ${INC_FILES}
......
...@@ -309,7 +309,7 @@ CONFIG(debug, debug|release) { ...@@ -309,7 +309,7 @@ CONFIG(debug, debug|release) {
###################### ICONS ################################################ ###################### ICONS ################################################
win32:RC_FILE = icons/qtiplot.rc win32:RC_FILE = icons/MantidPlotDesktop.rc
mac:RC_FILE = icons/qtiplot.icns mac:RC_FILE = icons/qtiplot.icns
###################### TRANSLATIONS ######################################### ###################### TRANSLATIONS #########################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment