Skip to content

Commit

Permalink
Added re2c step to build.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 11, 2009
1 parent 9129dcf commit 7f70e9a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Expand Up @@ -48,6 +48,13 @@ ADD_LIBRARY(mojoshader STATIC
mojoshader_opengl.c
)

ADD_CUSTOM_COMMAND(
OUTPUT mojoshader_lexer.c
DEPENDS mojoshader_lexer.re
COMMAND re2c
ARGS -s -o ${CMAKE_CURRENT_SOURCE_DIR}/mojoshader_lexer.c ${CMAKE_CURRENT_SOURCE_DIR}/mojoshader_lexer.re
)

FIND_PACKAGE(SDL)
IF(SDL_FOUND)
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
Expand Down

0 comments on commit 7f70e9a

Please sign in to comment.