auto remove lex.yy.h

This commit is contained in:
Yuichi Nishiwaki 2014-03-02 19:03:01 +09:00
parent d01a29b0e0
commit 0b4f65bf9e
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# flex
find_package(FLEX REQUIRED)
flex_target(scan src/scan.l ${PROJECT_SOURCE_DIR}/src/lex.yy.c COMPILE_FLAGS --header-file="src/lex.yy.h")
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${PROJECT_SOURCE_DIR}/src/lex.yy.h)
# build!
file(GLOB C_SOURCES ${PROJECT_SOURCE_DIR}/src/*.c)