I did some modifications to match the new specifications
[ozulis.git] / cmake / bison.cmake
blobcaa5dcc968db7871e88a94803b442373afa75924
1 MACRO(OZULIS_BISON NAME)
2 ADD_CUSTOM_COMMAND(
3   OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${NAME}.hh
4          ${CMAKE_CURRENT_SOURCE_DIR}/${NAME}.cc
5   COMMAND bison
6   ARGS --locations -t -v -Wall -rall -d
7        -o ${CMAKE_CURRENT_SOURCE_DIR}/${NAME}.cc
8        ${CMAKE_CURRENT_SOURCE_DIR}/${NAME}.y
9   DEPENDS ${NAME}.y
10   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
11 ENDMACRO(OZULIS_BISON)