Skip to content

Commit

Permalink
cmake: provide QT6 compatibility for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t-8ch committed Aug 18, 2024
1 parent 20ca16c commit d8ee12b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ enable_testing()

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

find_package(Qt5Test REQUIRED)
find_package(Qt${QT_MAJOR_VERSION}Test REQUIRED)

set(test_libs Qt5::Test kraftlib)
set(test_libs Qt${QT_MAJOR_VERSION}::Test kraftlib)

add_executable(t_unitman t_unitman.cpp)
target_link_libraries(t_unitman ${test_libs})
Expand Down

0 comments on commit d8ee12b

Please sign in to comment.