Files
nanomq/cmake/SerialGenerate.cmake
2023-04-01 12:32:39 +08:00

8 lines
207 B
CMake

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()