Skip to content

Commit

Permalink
Update tests to Qt6 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cpina committed Oct 2, 2023
1 parent 5a94919 commit c75d0a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set(CMAKE_AUTOMOC ON)
find_package(Qt5Test REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt6Test REQUIRED)
find_package(Qt6Network REQUIRED)

add_executable(testnetworkinformationreader testnetworkinformationreader.cpp ../networkinformationreader.cpp ../utils.cpp)
add_executable(testformatnumber testformatnumber.cpp ../formatnumber.cpp)
Expand All @@ -10,9 +10,9 @@ add_test(testnetworkinformationreader testnetworkinformationreader)
add_test(testformatnumber testformatnumber)
add_test(testinformationstorage testinformationstorage)

target_link_libraries(testnetworkinformationreader Qt5::Test Qt5::Network)
target_link_libraries(testformatnumber Qt5::Test)
target_link_libraries(testinformationstorage Qt5::Test)
target_link_libraries(testnetworkinformationreader Qt6::Test Qt6::Network)
target_link_libraries(testformatnumber Qt6::Test)
target_link_libraries(testinformationstorage Qt6::Test)

# Warning: files are not copied again if modified
file(COPY proc_net_dev_files/example01.txt DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/proc_net_dev_files)

0 comments on commit c75d0a1

Please sign in to comment.