CMakeLists.txt
changeset 563 d22551643fcb
parent 555 940821555fda
child 569 117d6e606c4e
equal deleted inserted replaced
562:c9a2bc5129c9 563:d22551643fcb
    46     mojoshader_lexer.c
    46     mojoshader_lexer.c
    47     mojoshader_assembler.c
    47     mojoshader_assembler.c
    48     mojoshader_opengl.c
    48     mojoshader_opengl.c
    49 )
    49 )
    50 
    50 
       
    51 ADD_CUSTOM_COMMAND(
       
    52     OUTPUT mojoshader_lexer.c
       
    53     DEPENDS mojoshader_lexer.re
       
    54     COMMAND re2c
       
    55     ARGS -s -o ${CMAKE_CURRENT_SOURCE_DIR}/mojoshader_lexer.c ${CMAKE_CURRENT_SOURCE_DIR}/mojoshader_lexer.re
       
    56 )
       
    57 
    51 FIND_PACKAGE(SDL)
    58 FIND_PACKAGE(SDL)
    52 IF(SDL_FOUND)
    59 IF(SDL_FOUND)
    53     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
    60     INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR})
    54     ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
    61     ADD_DEFINITIONS(-DFINDERRORS_COMPILE_SHADERS=1)
    55     ADD_EXECUTABLE(glcaps glcaps.c)
    62     ADD_EXECUTABLE(glcaps glcaps.c)