Skip to content

Commit 8d14d30

Browse files
committed
Find Qt Test package
1 parent 00f9fd6 commit 8d14d30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/FindQt.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
find_package(Qt6 6.6 COMPONENTS Gui Qml Quick REQUIRED)
22
set(QT_LIBS Qt6::Gui Qt6::Qml Qt6::Quick)
33

4+
if (SCRATCHCPPGUI_BUILD_UNIT_TESTS)
5+
find_package(Qt6 6.6 COMPONENTS Test REQUIRED)
6+
endif()
7+
48
function(linkQt TARGET)
59
target_link_libraries(${TARGET} PRIVATE ${QT_LIBS})
610
endfunction()

0 commit comments

Comments
 (0)