Skip to content

Commit

Permalink
chore: build demo and tests only when QML modules are built
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Nov 2, 2024
1 parent e576409 commit 7c5540a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ if(FLUID_WITH_QML_MODULES)
add_subdirectory(src/imports/controls)
add_subdirectory(src/imports/private)
add_subdirectory(src/imports/templates)
endif()
if(FLUID_WITH_DEMO)
add_subdirectory(src/demo)
endif()
if(BUILD_TESTING)
add_subdirectory(tests/auto)
if(FLUID_WITH_DEMO)
add_subdirectory(src/demo)
endif()
if(BUILD_TESTING)
add_subdirectory(tests/auto)
endif()
endif()
34 changes: 18 additions & 16 deletions features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@
## Enable feature summary at the end of the configure run:
include(FeatureSummary)

## Find Qt:
find_package(Qt6 "6.7.0"
REQUIRED
COMPONENTS
Core
Gui
Svg
Qml
Quick
QuickControls2
QuickTest
)

## Qt policies:
if(QT_KNOWN_POLICY_QTP0004)
qt6_policy(SET QTP0004 NEW)
if(FLUID_WITH_QML_MODULES)
## Find Qt:
find_package(Qt6 "6.7.0"
REQUIRED
COMPONENTS
Core
Gui
Svg
Qml
Quick
QuickControls2
QuickTest
)

## Qt policies:
if(QT_KNOWN_POLICY_QTP0004)
qt6_policy(SET QTP0004 NEW)
endif()
endif()

#### Features
Expand Down

0 comments on commit 7c5540a

Please sign in to comment.