blob: bcd4ac0c553f211f164149e35a389021768b3cfd [file] [log] [blame] [edit]
add_custom_command(
OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/generated.h
COMMAND
${CMAKE_COMMAND} -E false
CODEGEN
)
# We don't want codegen to drive parts of the project that are EXCLUDE_FROM_ALL.
# This tests that foobar is properly excluded from the codegen build.
add_executable(foobar EXCLUDE_FROM_ALL error.c ${CMAKE_CURRENT_BINARY_DIR}/generated.h)