GH-2291 Fix build with Qt 5.11+
This commit is contained in:
parent
f0ff2db4e1
commit
4d68c1b509
19 changed files with 21 additions and 14 deletions
|
@ -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/")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue