bisonΒΆ

hunter_add_package(bison)
find_package(BISON REQUIRED)
BISON_TARGET(MyParser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp)
add_executable(bison main.cpp ${BISON_MyParser_OUTPUTS})