Skip to content

Commit b1d1691

Browse files
committed
cmake: provide QT6 compatibility for tests
1 parent 3548b15 commit b1d1691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ enable_testing()
1414

1515
# include_directories( "${CMAKE_CURRENT_BINARY_DIR}/../src" )
1616

17-
find_package(Qt5Test REQUIRED)
17+
find_package(Qt${QT_MAJOR_VERSION}Test REQUIRED)
1818

19-
set(test_libs Qt5::Test kraftlib)
19+
set(test_libs Qt${QT_MAJOR_VERSION}::Test kraftlib)
2020

2121
add_executable(t_unitman t_unitman.cpp)
2222
target_link_libraries(t_unitman ${test_libs})

0 commit comments

Comments
 (0)