适配:关闭严格警告,剩余仅存链接问题

This commit is contained in:
zyuan 2025-06-24 11:08:26 +08:00
parent 54b56216fa
commit e30cc8e7f9
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "RelWithD
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0") # Debug
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3") # Release[2,6](@ref)
if(MSVC)
add_compile_options(/W4 /WX) # Windows:
#add_compile_options(/W4 /WX) # Windows:
add_compile_options(/utf-8)
else()
add_compile_options(-Wall -Wextra -Wpedantic -Werror) # Linux/macOS: [1](@ref)
@ -38,8 +38,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
include_directories(include)
file(GLOB_RECURSE SOURCES "DataPlatform/*.cpp" "DataPlatform/*.c") #
file(GLOB_RECURSE HEADERS "include/*.hpp" "include/*.h")
file(GLOB_RECURSE SOURCES "DataPlatform/*.cpp" "DataPlatform/*.c" "DataPlatform/*.cc") #
file(GLOB_RECURSE HEADERS "DataPlatform/*.hpp" "DataPlatform/*.h")
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})

View File

@ -1,6 +1,6 @@
#pragma once
#include "webqt_global.h"
#include "webengineview.h"
#include "qwebengineview.h"
#include <qwidget.h>
#include <QMouseEvent>
#include <QtCore/qglobal.h>