allow to call a function defined later in the source
[bosc.git] / src / CMakeLists.txt
blobe934adf1b0faca27acfa24d8ca0396568fc7eda6
1 #exec_program (flex lexer.l)\r
2 #exec_program (bison -d parser.y -o parser.tab.cpp)\r
3 \r
4 include (CMakeUseFlex.txt)\r
5 include (CMakeUseBison.txt)\r
6 \r
7 flex_file(lexer.l)\r
8 bison_file(parser.y)\r
9 \r
10 set (CMAKE_CXX_FLAGS -Wall)\r
11 set (CMAKE_C_FLAGS -Wall)\r
13 add_executable (bosc main.cpp lex.yy.c parser.tab.cpp ast.cpp compiler.cpp codegen.cpp)\r
14 target_link_libraries (bosc fl)\r