Skip to content

Commit a6b8f2e

Browse files
author
Gin
committed
Fix dark mode
1 parent 4e4a691 commit a6b8f2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SerialPrograms/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ include(SourceFiles.cmake)
131131
# Separate sources into library and executable components
132132
set(LIBRARY_SOURCES ${MAIN_SOURCES})
133133
list(REMOVE_ITEM LIBRARY_SOURCES "Source/CommonFramework/Main.cpp")
134-
set(EXECUTABLE_SOURCES "Source/CommonFramework/Main.cpp")
134+
# the executable needs the dark style format file
135+
set(EXECUTABLE_SOURCES "Source/CommonFramework/Main.cpp" "../3rdParty/qdarkstyle/dark/darkstyle.qrc")
135136

136137
# Organize source files in IDE project view
137138
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/../../ FILES ${LIBRARY_SOURCES})
@@ -140,6 +141,7 @@ source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/../../ FILES ${EXECUTABLE_SOURCES}
140141
# Create library target first
141142
add_library(SerialProgramsLib STATIC ${LIBRARY_SOURCES})
142143

144+
# Create binary target
143145
if (APPLE)
144146
set(SerialPrograms_ICON ${CMAKE_CURRENT_SOURCE_DIR}/../IconResource/icon.icns)
145147
# set_source_files_properties(SerialPrograms_ICON PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")

0 commit comments

Comments
 (0)