From e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 22:34:10 +0200 Subject: Adding upstream version 4.2.2. Signed-off-by: Daniel Baumann --- cmake/modules/UseMakePluginReg.cmake | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cmake/modules/UseMakePluginReg.cmake (limited to 'cmake/modules/UseMakePluginReg.cmake') diff --git a/cmake/modules/UseMakePluginReg.cmake b/cmake/modules/UseMakePluginReg.cmake new file mode 100644 index 00000000..0c7198d8 --- /dev/null +++ b/cmake/modules/UseMakePluginReg.cmake @@ -0,0 +1,17 @@ +# +function(register_plugin_files _outputfile _registertype) + file(RELATIVE_PATH output "${CMAKE_BINARY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/${_outputfile}") + add_custom_command( + OUTPUT + ${_outputfile} + COMMAND ${Python3_EXECUTABLE} + ${CMAKE_SOURCE_DIR}/tools/make-plugin-reg.py + ${CMAKE_CURRENT_SOURCE_DIR} + ${_registertype} + ${ARGN} + COMMENT "Generating ${output}" + DEPENDS + ${ARGN} + ${CMAKE_SOURCE_DIR}/tools/make-plugin-reg.py + ) +endfunction() -- cgit v1.2.3