From dc4b9e2d5123a798212d526188b15dac195b9a85 Mon Sep 17 00:00:00 2001 From: pifopi Date: Wed, 25 Feb 2026 00:13:19 +0100 Subject: [PATCH] Fix the error during first cmake generation --- SerialPrograms/cmake/SourceFiles.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SerialPrograms/cmake/SourceFiles.cmake b/SerialPrograms/cmake/SourceFiles.cmake index a87fc8919..9176297dd 100644 --- a/SerialPrograms/cmake/SourceFiles.cmake +++ b/SerialPrograms/cmake/SourceFiles.cmake @@ -2,7 +2,8 @@ # For the main CMake file, see CMakeLists.txt # the GUI executable needs the dark style format file -set(EXECUTABLE_SOURCES "Source/CommonFramework/Main.cpp" "../3rdParty/qdarkstyle/dark/darkstyle.qrc") +qt_add_resources(DARK_STYLE_RES "../3rdParty/qdarkstyle/dark/darkstyle.qrc") +set(EXECUTABLE_SOURCES "Source/CommonFramework/Main.cpp" ${DARK_STYLE_RES}) # Note: Command-line executable sources are defined in Source/CommandLine/CommandLineExecutable.cmake