File tree 4 files changed +17
-8
lines changed
4 files changed +17
-8
lines changed Original file line number Diff line number Diff line change
1
+ * text =auto eol =lf
2
+ * .{cmd, [cC ][mM ][dD ]} text eol =crlf
3
+ * .{bat, [bB ][aA ][tT ]} text eol =crlf
Original file line number Diff line number Diff line change @@ -71,6 +71,12 @@ endif()
71
71
72
72
if (OS_WINDOWS)
73
73
add_link_options (/DEBUG)
74
+ else ()
75
+ add_compile_options (-g)
76
+ add_compile_options (
77
+ "$<$<CONFIG:DEBUG>:-O0>"
78
+ "$<$<CONFIG:RELEASE>:-O3>"
79
+ )
74
80
endif ()
75
81
76
82
if (OS_MACOS)
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.4.1)
2
2
project (QCefViewTest)
3
3
4
+ set (CMAKE_INCLUDE_CURRENT_DIR ON )
4
5
set (CMAKE_AUTOMOC ON )
5
6
set (CMAKE_AUTOUIC ON )
6
7
set (CMAKE_AUTORCC ON )
7
8
8
- set (CMAKE_INCLUDE_CURRENT_DIR ON )
9
9
find_package (QT NAMES Qt6 Qt5 COMPONENTS Core Gui Widgets REQUIRED)
10
10
find_package (Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui Widgets REQUIRED)
11
11
@@ -81,7 +81,6 @@ endif() # OS_WINDOWS
81
81
if (OS_LINUX)
82
82
file (GLOB_RECURSE _RES_FILES
83
83
"*.qrc"
84
- "*.rc"
85
84
)
86
85
source_group ("Resource Files" ${_RES_FILES} )
87
86
@@ -135,9 +134,10 @@ if (OS_MACOS)
135
134
)
136
135
endif ()
137
136
138
- target_link_libraries (${PROJECT_NAME} PUBLIC
139
- Qt${QT_VERSION_MAJOR} ::Core
140
- Qt${QT_VERSION_MAJOR} ::Gui
141
- Qt${QT_VERSION_MAJOR} ::Widgets
142
- QCefView
137
+ target_link_libraries (${PROJECT_NAME}
138
+ PRIVATE
139
+ Qt${QT_VERSION_MAJOR} ::Core
140
+ Qt${QT_VERSION_MAJOR} ::Gui
141
+ Qt${QT_VERSION_MAJOR} ::Widgets
142
+ QCefView
143
143
)
You can’t perform that action at this time.
0 commit comments