config:更改为Qt6配置。

This commit is contained in:
2024-05-28 09:17:23 +08:00
parent 33064c7cb3
commit 9ddfbc6878
4 changed files with 14 additions and 10 deletions

View File

@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.5)
project(OneLevelXmlOpr VERSION 0.1 LANGUAGES CXX)
set(CMAKE_PREFIX_PATH
"C:/Qt/Qt5.14.2/5.14.2/msvc2017_64"
"C:/Qt/Qt6.6.3/6.6.3/msvc2019_64"
"/opt/homebrew/Cellar/qt@5/5.15.13_1"
)
@@ -31,10 +31,12 @@ set(PROJECT_SOURCES
)
if (MSVC)
if(${QT_VERSION_MAJOR} LESS 6)
add_compile_options(/source-charset:utf-8)
add_compile_options(/EHsc)
add_compile_options(/wd4267)
add_compile_options(-D_CRT_SECURE_NO_WARNINGS)
endif()
add_compile_options(/EHsc)
add_compile_options(/wd4267)
add_compile_options(-D_CRT_SECURE_NO_WARNINGS)
endif()
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)