wireless: align some HE capabilities with the spec
[carl9170fw.git] / config / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8.4)
2
3 project(config)
4
5 #set(CMAKE_VERBOSE_MAKEFILE ON)
6
7 find_package(BISON REQUIRED)
8 find_package(FLEX REQUIRED)
9
10 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
11
12 file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../include/generated")
13
14 BISON_TARGET(parser parser.y parser.tab.c COMPILE_FLAGS "-l -b parser -p yy -t")
15 FLEX_TARGET(lexer lexer.l lexer.lex.c COMPILE_FLAGS "-Pyy -L")
16
17 SET(parser_deps ${FLEX_lexer_OUTPUTS})
18 SET_SOURCE_FILES_PROPERTIES(${BISON_parser_OUTPUTS}
19       PROPERTIES OBJECT_DEPENDS "${parser_deps}")
20
21 set(conf_src conf.c util.c symbol.c confdata.c expr.c preprocess.c ${BISON_parser_OUTPUTS} ${FLEX_lexer_OUTPUTS})
22
23 add_executable(conf ${conf_src})