Make CMake icon work on Windows

This commit is contained in:
atauzki 2023-08-06 10:28:01 +08:00 committed by GitHub
parent 1ee42bd599
commit d6abfcd6aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,11 @@ set(QSINGLEAPP_SOURCE_FILES
thirdparty/qtsingleapplication/src/qtsingleapplication.h thirdparty/qtsingleapplication/src/qtsingleapplication.h
) )
qt_add_executable(${GOLDENDICT} MANUAL_FINALIZATION) if(WIN32)
qt_add_executable(${GOLDENDICT} WIN32 MANUAL_FINALIZATION icons/programicon.rc)
else()
qt_add_executable(${GOLDENDICT} MANUAL_FINALIZATION)
endif()
target_sources(${GOLDENDICT} PRIVATE target_sources(${GOLDENDICT} PRIVATE
icons/flags.qrc icons/flags.qrc