From 155307fe6a6a1006a59022fd547fb75eec853d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Fri, 21 Jun 2024 13:21:32 +0800 Subject: [PATCH] fix bug macos --- example/CMakeLists.txt | 6 +----- example/res/template/src/CMakeLists.txt.in | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 24592b5e..88e96e32 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -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) diff --git a/example/res/template/src/CMakeLists.txt.in b/example/res/template/src/CMakeLists.txt.in index dafc5156..003feb30 100644 --- a/example/res/template/src/CMakeLists.txt.in +++ b/example/res/template/src/CMakeLists.txt.in @@ -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)