Cmake 命令

add_custom_command

用法①

为了生成输出文件,添加一条自定义命令

语法格式①

add_custom_command(OUTPUT output1 [output2 ...]
                    COMMAND command1 [ARGS] [args1...]
                    [COMMAND command2 [ARGS] [args2...] ...]
                    [MAIN_DEPENDENCY depend]
                    [DEPENDS [depends...]]
                    [IMPLICIT_DEPENDS <lang1> depend1 ...]
                    [WORKING_DIRECTORY dir]
                    [COMMENT comment] [VERBATIM] [APPEND])
Table of Contents