summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/remoteobjects/Qt6RemoteObjectsMacros.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/remoteobjects/Qt6RemoteObjectsMacros.cmake b/src/remoteobjects/Qt6RemoteObjectsMacros.cmake
index fe12eb9..21b764e 100644
--- a/src/remoteobjects/Qt6RemoteObjectsMacros.cmake
+++ b/src/remoteobjects/Qt6RemoteObjectsMacros.cmake
@@ -53,7 +53,8 @@ function(_qt_internal_add_repc_files type target)
get_filename_component(outfilename ${it} NAME_WE)
get_filename_component(extension ${it} EXT)
if ("${extension}" STREQUAL ".h" OR "${extension}" STREQUAL ".hpp")
- qt_manual_moc(qtro_moc_files OUTPUT_MOC_JSON_FILES json_list ${it})
+ qt6_wrap_cpp(qtro_moc_files "${it}"
+ __QT_INTERNAL_OUTPUT_MOC_JSON_FILES json_list)
set(infile ${json_list})
set_source_files_properties(${qtro_moc_files} PROPERTIES HEADER_FILE_ONLY ON)
list(APPEND outfiles ${qtro_moc_files})
@@ -99,7 +100,8 @@ function(qt6_reps_from_headers target)
list(POP_FRONT ARGV)
foreach(it ${ARGV})
get_filename_component(outfilename ${it} NAME_WE)
- qt_manual_moc(qtro_moc_files OUTPUT_MOC_JSON_FILES json_list ${it})
+ qt6_wrap_cpp(qtro_moc_files "${it}"
+ __QT_INTERNAL_OUTPUT_MOC_JSON_FILES json_list)
set(infile ${json_list})
set_source_files_properties(${qtro_moc_files} PROPERTIES HEADER_FILE_ONLY ON)
list(APPEND outfiles ${qtro_moc_files})