Commit b81afd92 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use add_test signature where target command gets resolved to binary path

parent b93d3464
......@@ -26,7 +26,7 @@ remove_definitions(-DQT_NO_SIGNALS_SLOTS_KEYWORDS)
macro(FRAMEWORKINTEGRATION_TESTS _testname)
add_executable(${_testname} ${_testname}.cpp ${ARGN})
set_target_properties(${_testname} PROPERTIES COMPILE_FLAGS "-DUNIT_TEST")
add_test(frameworkintegration-${_testname} ${_testname})
add_test(NAME frameworkintegration-${_testname} COMMAND ${_testname})
ecm_mark_as_test(${_testname})
ecm_mark_nongui_executable(${_testname})
target_link_libraries(${_testname} Qt5::Test Qt5::DBus Qt5::X11Extras Qt5::QuickControls2 ${QT5PLATFORMSUPPORT_LIBS} KF5::ConfigWidgets KF5::ConfigCore KF5::IconThemes KF5::KIOFileWidgets KF5::I18n KF5::Notifications KF5::WindowSystem KF5::WaylandClient XCB::XCB)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment