Application icon for Windows build.

master
Tomatix 4 years ago
parent 306cbe15b9
commit 3c061f0fd2
  1. 8
      IdealIRC/CMakeLists.txt
  2. BIN
      Resources/Icons/icon.ico
  3. 1
      Resources/windows.rc

@ -1,5 +1,10 @@
set(component "IdealIRC")
# Windows resources. Application icon.
if (MSVC)
set(WINDOWS_RC_FILE "${IIRC_SOURCE_DIR}/Resources/windows.rc")
endif()
list(APPEND ${component}_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/AboutIIRC.cpp
${CMAKE_CURRENT_SOURCE_DIR}/AboutIIRC.h
@ -24,7 +29,8 @@ list(APPEND ${component}_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
)
add_executable(${component} ${${component}_SOURCES})
add_executable(${component} ${${component}_SOURCES} ${WINDOWS_RC_FILE})
target_link_libraries(${component} fmt)
qt5_use_modules(${component} Widgets)

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "Resources/Icons/icon.ico"
Loading…
Cancel
Save