diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:16 +0200 |
| commit | 2d1068e60bce7ae1fff11623454900e8cee956b1 (patch) | |
| tree | acebe276e30466ef0ab91bc3da5e379bec0d7dc5 /CMake/Modules/QtAxMacros.cmake | |
| parent | 43bebfbad6e7ba026bd3d55720c7d9e12a7ef8ef (diff) | |
New upstream version 2.6.0~rc3+repackupstream/2.6.0_rc3+repack
Diffstat (limited to 'CMake/Modules/QtAxMacros.cmake')
| -rwxr-xr-x | CMake/Modules/QtAxMacros.cmake | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/CMake/Modules/QtAxMacros.cmake b/CMake/Modules/QtAxMacros.cmake index ee9f88a1..eabde093 100755 --- a/CMake/Modules/QtAxMacros.cmake +++ b/CMake/Modules/QtAxMacros.cmake @@ -1,36 +1,36 @@ -# -# Macros for processing ActiveX and COM controls with ActiveQt -# - -if (WIN32) - include (CMakeParseArguments) - - find_program (DUMPCPP_Executable dumpcpp.exe) - - # wrap_ax_server (outfiles inputfile ...) - - function (WRAP_AX_SERVER outfiles) - set (options) - set (oneValueArgs) - set (multiValueArgs OPTIONS) - - cmake_parse_arguments (_WRAP_AX_SERVER "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) - - set (ax_server_files ${_WRAP_AX_SERVER_UNPARSED_ARGUMENTS}) - set (ax_server_options ${_WRAP_AX_SERVER_OPTIONS}) - - foreach (it ${ax_server_files}) - get_filename_component (outfile ${it} NAME_WE) - get_filename_component (infile ${it} ABSOLUTE) - set (outfile ${CMAKE_CURRENT_BINARY_DIR}/${outfile}) - add_custom_command ( - OUTPUT ${outfile}.h ${outfile}.cpp - COMMAND ${DUMPCPP_Executable} - ARGS ${ax_server_options} -o "${outfile}" "${infile}" - MAIN_DEPENDENCY ${infile} VERBATIM) - list (APPEND ${outfiles} ${outfile}.cpp) - endforeach() - set(${outfiles} ${${outfiles}} PARENT_SCOPE) - endfunction () - +#
+# Macros for processing ActiveX and COM controls with ActiveQt
+#
+
+if (WIN32)
+ include (CMakeParseArguments)
+
+ find_program (DUMPCPP_Executable dumpcpp.exe)
+
+ # wrap_ax_server (outfiles inputfile ...)
+
+ function (WRAP_AX_SERVER outfiles)
+ set (options)
+ set (oneValueArgs)
+ set (multiValueArgs OPTIONS)
+
+ cmake_parse_arguments (_WRAP_AX_SERVER "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
+
+ set (ax_server_files ${_WRAP_AX_SERVER_UNPARSED_ARGUMENTS})
+ set (ax_server_options ${_WRAP_AX_SERVER_OPTIONS})
+
+ foreach (it ${ax_server_files})
+ get_filename_component (outfile ${it} NAME_WE)
+ get_filename_component (infile ${it} ABSOLUTE)
+ set (outfile ${CMAKE_CURRENT_BINARY_DIR}/${outfile})
+ add_custom_command (
+ OUTPUT ${outfile}.h ${outfile}.cpp
+ COMMAND ${DUMPCPP_Executable}
+ ARGS ${ax_server_options} -o "${outfile}" "${infile}"
+ MAIN_DEPENDENCY ${infile} VERBATIM)
+ list (APPEND ${outfiles} ${outfile}.cpp)
+ endforeach()
+ set(${outfiles} ${${outfiles}} PARENT_SCOPE)
+ endfunction ()
+
endif (WIN32)
\ No newline at end of file |
