CMakeLists.txt
changeset 563 d22551643fcb
parent 555 940821555fda
child 569 117d6e606c4e
--- a/CMakeLists.txt	Wed Feb 11 15:43:02 2009 -0500
+++ b/CMakeLists.txt	Wed Feb 11 16:49:00 2009 -0500
@@ -48,6 +48,13 @@
     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})