From 4d68c1b509cd289e9f02cbf258e69f2539349029 Mon Sep 17 00:00:00 2001 From: Sergey Shatunov Date: Fri, 1 Jun 2018 21:20:33 +0700 Subject: GH-2291 Fix build with Qt 5.11+ --- cmake/UnitTest.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmake') diff --git a/cmake/UnitTest.cmake b/cmake/UnitTest.cmake index e48ff74d..2552b32c 100644 --- a/cmake/UnitTest.cmake +++ b/cmake/UnitTest.cmake @@ -7,7 +7,7 @@ message(${TEST_RESOURCE_PATH}) function(add_unit_test name) set(options "") set(oneValueArgs DATA) - set(multiValueArgs SOURCES LIBS QT) + set(multiValueArgs SOURCES LIBS) cmake_parse_arguments(OPT "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) @@ -40,8 +40,7 @@ function(add_unit_test name) endif() endif() - target_link_libraries(${name}_test ${OPT_LIBS}) - qt5_use_modules(${name}_test Test ${OPT_QT}) + target_link_libraries(${name}_test Qt5::Test ${OPT_LIBS}) target_include_directories(${name}_test PRIVATE "${TEST_RESOURCE_PATH}/UnitTest/") -- cgit v1.2.3