Skip to content

Add application icon for Windows build - #96

Merged
christianhelle merged 2 commits into
masterfrom
add-windows-icon
Nov 19, 2025
Merged

Add application icon for Windows build#96
christianhelle merged 2 commits into
masterfrom
add-windows-icon

Conversation

@christianhelle

Copy link
Copy Markdown
Owner

This pull request updates the build configuration in src/project/CMakeLists.txt to ensure that the Windows application icon resource is included when building the executable. This change makes the build process more consistent across different platforms.

Build system improvements:

  • Updated the qt_add_executable and add_executable commands to conditionally include the ${app_icon_resource_windows} resource when building on Windows, ensuring the application icon is properly set for Windows builds.

@christianhelle christianhelle self-assigned this Nov 19, 2025
Copilot AI review requested due to automatic review settings November 19, 2025 09:15
@coderabbitai

coderabbitai Bot commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@christianhelle has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 2 minutes and 46 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 6f589cf and a1492a9.

⛔ Files ignored due to path filters (1)
  • src/resources/icon.ico is excluded by !**/*.ico
📒 Files selected for processing (1)
  • src/project/CMakeLists.txt (1 hunks)
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-windows-icon

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds a Windows application icon to the build configuration by including the icon resource file in the executable build commands. The icon.ico file is added to the resources directory, and the CMakeLists.txt is updated to conditionally include the Windows icon resource when building on Windows platforms.

Key Changes

  • Added icon.ico binary file to src/resources/ directory
  • Updated both qt_add_executable and add_executable commands to conditionally include the Windows icon resource using generator expressions

Reviewed Changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/resources/icon.ico New Windows icon file containing multiple icon sizes encoded as PNG images
src/project/CMakeLists.txt Updated executable build commands to conditionally include Windows icon resource using $<$<PLATFORM_ID:Windows>:${app_icon_resource_windows}>


if(COMMAND qt_add_executable)
qt_add_executable(${APP_NAME} WIN32 MACOSX_BUNDLE ${COMMON_SRCS})
qt_add_executable(${APP_NAME} WIN32 MACOSX_BUNDLE ${COMMON_SRCS} $<$<PLATFORM_ID:Windows>:${app_icon_resource_windows}>)

Copilot AI Nov 19, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title contains a typo: 'applicaton' should be 'application'.

Copilot uses AI. Check for mistakes.
@christianhelle christianhelle changed the title Add applicaton icon for Windows build Add application icon for Windows build Nov 19, 2025
@christianhelle
christianhelle merged commit 63abc63 into master Nov 19, 2025
13 checks passed
@christianhelle
christianhelle deleted the add-windows-icon branch November 19, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants