Skip to content

Commit

Permalink
fix bug macos
Browse files Browse the repository at this point in the history
  • Loading branch information
朱子楚\zhuzi committed Jun 21, 2024
1 parent 6feaf80 commit 155307f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ if (WIN32)
)
endif ()

#加快qrc编译
qt_add_big_resources(QRC_RESOURCES ${PROJECT_NAME}.qrc)
list(APPEND QRC_RESOURCES ${PROJECT_NAME}.qrc)
set_property(SOURCE ${PROJECT_NAME}.qrc PROPERTY SKIP_AUTORCC ON)
list(APPEND sources_files ${QRC_RESOURCES})
list(APPEND sources_files ${PROJECT_NAME}.qrc)

#添加可执行文件
if (WIN32)
Expand Down
6 changes: 1 addition & 5 deletions example/res/template/src/CMakeLists.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,9 @@ add_custom_target(Script-UpdateTranslations
SOURCES ${TS_FILE_PATHS}
)

qt_add_big_resources(QRC_RESOURCES qml.qrc)
list(APPEND QRC_RESOURCES qml.qrc)
set_property(SOURCE qml.qrc PROPERTY SKIP_AUTORCC ON)

set(PROJECT_SOURCES
main.cpp
${QRC_RESOURCES}
qml.qrc
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
Expand Down

0 comments on commit 155307f

Please sign in to comment.