Полный путь к файлам для QTest
This commit is contained in:
parent
47ed469e6e
commit
1ee5df29d1
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user