mirror of
https://github.com/nanomq/nanomq.git
synced 2025-07-17 21:55:28 +00:00
* NEW [cmake] add SerialGenerate.cmake
This commit is contained in:
7
cmake/SerialGenerate.cmake
Normal file
7
cmake/SerialGenerate.cmake
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
function(SERIAL_GENERATE idl_file out_name dir)
|
||||
find_program(GENERATOR idl-serial-code-gen)
|
||||
set(PROC_ARGS "${idl_file} ${out_name} ${dir}")
|
||||
|
||||
exec_program(${GENERATOR} ARGS ${PROC_ARGS})
|
||||
endfunction()
|
Reference in New Issue
Block a user