Полный путь к файлам для QTest

This commit is contained in:
Andrei Astafev 2024-03-11 13:51:29 +03:00
parent 47ed469e6e
commit 1ee5df29d1

View File

@ -14,8 +14,8 @@ macro(myx_add_qtest TARGET_NAME)
foreach(filename ${ARG_UNPARSED_ARGUMENTS})
get_filename_component(basename ${filename} NAME_WE)
list(APPEND cpps "${basename}.cpp")
list(APPEND hpps "${basename}.hpp")
list(APPEND cpps "${CMAKE_CURRENT_SOURCE_DIR}/${basename}.cpp")
list(APPEND hpps "${CMAKE_CURRENT_SOURCE_DIR}/${basename}.hpp")
qt5_wrap_cpp(moc "${basename}.hpp")
list(APPEND mocs "${moc}")
endforeach()