Skip to content

Commit 7c5540a

Browse files
committed
chore: build demo and tests only when QML modules are built
1 parent e576409 commit 7c5540a

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

CMakeLists.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ if(FLUID_WITH_QML_MODULES)
5353
add_subdirectory(src/imports/controls)
5454
add_subdirectory(src/imports/private)
5555
add_subdirectory(src/imports/templates)
56-
endif()
57-
if(FLUID_WITH_DEMO)
58-
add_subdirectory(src/demo)
59-
endif()
60-
if(BUILD_TESTING)
61-
add_subdirectory(tests/auto)
56+
if(FLUID_WITH_DEMO)
57+
add_subdirectory(src/demo)
58+
endif()
59+
if(BUILD_TESTING)
60+
add_subdirectory(tests/auto)
61+
endif()
6262
endif()

features.cmake

+18-16
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,24 @@
44
## Enable feature summary at the end of the configure run:
55
include(FeatureSummary)
66

7-
## Find Qt:
8-
find_package(Qt6 "6.7.0"
9-
REQUIRED
10-
COMPONENTS
11-
Core
12-
Gui
13-
Svg
14-
Qml
15-
Quick
16-
QuickControls2
17-
QuickTest
18-
)
19-
20-
## Qt policies:
21-
if(QT_KNOWN_POLICY_QTP0004)
22-
qt6_policy(SET QTP0004 NEW)
7+
if(FLUID_WITH_QML_MODULES)
8+
## Find Qt:
9+
find_package(Qt6 "6.7.0"
10+
REQUIRED
11+
COMPONENTS
12+
Core
13+
Gui
14+
Svg
15+
Qml
16+
Quick
17+
QuickControls2
18+
QuickTest
19+
)
20+
21+
## Qt policies:
22+
if(QT_KNOWN_POLICY_QTP0004)
23+
qt6_policy(SET QTP0004 NEW)
24+
endif()
2325
endif()
2426

2527
#### Features

0 commit comments

Comments
 (0)