summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorSergey Shatunov <me@prok.pw>2018-06-01 21:20:33 +0700
committerSergey Shatunov <me@prok.pw>2018-06-02 17:22:43 +0700
commit4d68c1b509cd289e9f02cbf258e69f2539349029 (patch)
tree75ebfaae1e8c6b32babed0f89b18a5c62b06d503 /cmake
parentf0ff2db4e1a81bc941ea8b6ce43f7fb63d34547a (diff)
downloadMultiMC-4d68c1b509cd289e9f02cbf258e69f2539349029.tar
MultiMC-4d68c1b509cd289e9f02cbf258e69f2539349029.tar.gz
MultiMC-4d68c1b509cd289e9f02cbf258e69f2539349029.tar.lz
MultiMC-4d68c1b509cd289e9f02cbf258e69f2539349029.tar.xz
MultiMC-4d68c1b509cd289e9f02cbf258e69f2539349029.zip
GH-2291 Fix build with Qt 5.11+
Diffstat (limited to 'cmake')
-rw-r--r--cmake/UnitTest.cmake5
1 files changed, 2 insertions, 3 deletions
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/")