Use full file path for the generated dbus files
Change-Id: Idb7cb49800eaef4a2e09d3e03d2e44528d992d75 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
7ff65323e5
commit
a3e13cdacf
@ -44,12 +44,18 @@ function(qt_create_qdbusxml2cpp_command target infile)
|
||||
set(header_file "${file_name}.h")
|
||||
set(source_file "${file_name}.cpp")
|
||||
|
||||
add_custom_command(OUTPUT "${header_file}" "${source_file}"
|
||||
set(header_file_full "${CMAKE_CURRENT_BINARY_DIR}/${file_name}.h")
|
||||
set(source_file_full "${CMAKE_CURRENT_BINARY_DIR}/${file_name}.cpp")
|
||||
|
||||
add_custom_command(OUTPUT "${header_file_full}" "${source_file_full}"
|
||||
COMMAND ${QT_CMAKE_EXPORT_NAMESPACE}::qdbusxml2cpp ${arg_FLAGS} "${option}"
|
||||
"${header_file}:${source_file}" "${absolute_in_file_path}"
|
||||
DEPENDS "${absolute_in_file_path}" ${QT_CMAKE_EXPORT_NAMESPACE}::qdbusxml2cpp
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
VERBATIM)
|
||||
|
||||
target_sources("${target}" PRIVATE "${header_file}" "${source_file}")
|
||||
target_sources("${target}" PRIVATE
|
||||
"${header_file_full}"
|
||||
"${source_file_full}"
|
||||
)
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user