set(GENERATOR_SOURCES
src/syntax/automatas/generator/generator.c
src/syntax/automatas/generator/keyword_list.c
)
add_executable(generator ${GENERATOR_SOURCES})
target_link_libraries(generator wonky_assert misc automata_inner)
add_custom_command(POST_BUILD COMMAND generator
ARGS ${CMAKE_BINARY_DIR}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
VERBATIM
OUTPUT ${CMAKE_BINARY_DIR}/chonky.c)