decrypt drsuapi attributes
[wireshark-sm.git] / cmake / modules / UseMakePluginReg.cmake
blob0c7198d8f41560e2cd05e209688d8af51bc1779f
2 function(register_plugin_files _outputfile _registertype)
3         file(RELATIVE_PATH output "${CMAKE_BINARY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/${_outputfile}")
4         add_custom_command(
5             OUTPUT
6               ${_outputfile}
7             COMMAND ${Python3_EXECUTABLE}
8               ${CMAKE_SOURCE_DIR}/tools/make-plugin-reg.py
9               ${CMAKE_CURRENT_SOURCE_DIR}
10               ${_registertype}
11               ${ARGN}
12             COMMENT "Generating ${output}"
13             DEPENDS
14               ${ARGN}
15               ${CMAKE_SOURCE_DIR}/tools/make-plugin-reg.py
16         )
17 endfunction()