File tree Expand file tree Collapse file tree 2 files changed +17
-15
lines changed Expand file tree Collapse file tree 2 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,23 @@ if(WITH_MULTIPROCESS)
159
159
endif ()
160
160
161
161
cmake_dependent_option(BUILD_GUI_TESTS "Build test_bitcoin-qt executable." ON "BUILD_GUI;BUILD_TESTS" OFF )
162
+ if (BUILD_GUI)
163
+ set (qt_components Core Gui Widgets LinguistTools)
164
+ if (ENABLE_WALLET)
165
+ list (APPEND qt_components Network)
166
+ endif ()
167
+ if (WITH_DBUS)
168
+ list (APPEND qt_components DBus)
169
+ endif ()
170
+ if (BUILD_GUI_TESTS)
171
+ list (APPEND qt_components Test )
172
+ endif ()
173
+ find_package (Qt5 5.11.3 MODULE REQUIRED
174
+ COMPONENTS ${qt_components}
175
+ )
176
+ unset (qt_components)
177
+ endif ()
178
+
162
179
option (BUILD_BENCH "Build bench_bitcoin executable." OFF )
163
180
option (BUILD_FUZZ_BINARY "Build fuzz binary." OFF )
164
181
cmake_dependent_option(ENABLE_FUZZ "Build for fuzzing. Enabling this will disable all other targets and override BUILD_FUZZ_BINARY." OFF "NOT MSVC" OFF )
Original file line number Diff line number Diff line change 2
2
# Distributed under the MIT software license, see the accompanying
3
3
# file COPYING or https://opensource.org/license/mit/.
4
4
5
- set (qt_components Core Gui Widgets LinguistTools)
6
- if (ENABLE_WALLET)
7
- list (APPEND qt_components Network)
8
- endif ()
9
- if (WITH_DBUS)
10
- list (APPEND qt_components DBus)
11
- endif ()
12
- if (BUILD_GUI_TESTS)
13
- list (APPEND qt_components Test )
14
- endif ()
15
- find_package (Qt5 5.11.3 MODULE REQUIRED
16
- COMPONENTS ${qt_components}
17
- )
18
- unset (qt_components)
19
-
20
5
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" )
21
6
enable_language (OBJCXX)
22
7
set (CMAKE_OBJCXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} " )
You can’t perform that action at this time.
0 commit comments