Skip to content
Snippets Groups Projects
Commit b3d8d3aa authored by Julien Malik's avatar Julien Malik
Browse files

ENH: add application icon on windows

parent 1d452400
No related branches found
No related tags found
No related merge requests found
......@@ -30,16 +30,30 @@ add_to_qt4_i18n_sources(
${Application_FORMS}
)
if (WIN32)
# Windows Resource file need to have the full path to icon
# if the .ico is not in the current dir
set( Monteverdi2_WIN32_ICON ${Monteverdi2_SOURCE_DIR}/Data/Icons/monteverdi2.ico)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/mvdWin32.rc.in
${CMAKE_CURRENT_BINARY_DIR}/mvdWin32.rc
@ONLY
)
# The RC file to be added to source list
set( Monteverdi2_WIN32_RC_FILE ${CMAKE_CURRENT_BINARY_DIR}/mvdWin32.rc )
endif()
#############################################################################
# Monteverdi2_Application library
# STATIC so that the monteverdi2 executable does not depend on another shared lib
# The library is also used in tests, waiting for a better test strategy
# The library is not installed
set(Monteverdi2_Application_SOURCES ${Application_SOURCES})
add_library(Monteverdi2_Application
STATIC
${Monteverdi2_Application_SOURCES}
${Application_SOURCES}
${Application_FORMS_HEADERS}
${Application_HEADERS_MOC}
${Application_RESOURCES_RCC}
......@@ -54,6 +68,7 @@ target_link_libraries(Monteverdi2_Application
add_executable(monteverdi2
WIN32
main.cxx
${Monteverdi2_WIN32_RC_FILE}
)
target_link_libraries(monteverdi2
Monteverdi2_Application
......
IDI_ICON1 ICON DISCARDABLE "@Monteverdi2_WIN32_ICON@"
Data/Icons/monteverdi2-16x16.png

631 B

Data/Icons/monteverdi2-32x32.png

1.99 KiB

Data/Icons/monteverdi2-48x48.png

4.1 KiB

Data/Icons/monteverdi2.ico

14.7 KiB | W: | H:

Data/Icons/monteverdi2.ico

7.23 KiB | W: | H:

Data/Icons/monteverdi2.ico
Data/Icons/monteverdi2.ico
Data/Icons/monteverdi2.ico
Data/Icons/monteverdi2.ico
  • 2-up
  • Swipe
  • Onion skin
Data/Icons/monteverdi2.png

4.16 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment