1# flex+bison settings 2find_package(BISON) 3find_package(FLEX) 4BISON_TARGET(PARSER ScriptParser.yy ${CMAKE_CURRENT_BINARY_DIR}/ScriptParser.cpp) 5FLEX_TARGET(LEXER ScriptScanner.ll ${CMAKE_CURRENT_BINARY_DIR}/ScriptScanner.cpp) 6ADD_FLEX_BISON_DEPENDENCY(LEXER PARSER) 7include_directories(${CMAKE_CURRENT_BINARY_DIR}) 8 9add_mcld_library(MCLDScript 10 AssertCmd.cpp 11 Assignment.cpp 12 BinaryOp.cpp 13 EntryCmd.cpp 14 FileToken.cpp 15 GroupCmd.cpp 16 InputSectDesc.cpp 17 InputToken.cpp 18 NameSpec.cpp 19 NullaryOp.cpp 20 Operand.cpp 21 Operator.cpp 22 OutputArchCmd.cpp 23 OutputCmd.cpp 24 OutputFormatCmd.cpp 25 OutputSectDesc.cpp 26 RpnEvaluator.cpp 27 RpnExpr.cpp 28 ScriptCommand.cpp 29 ScriptFile.cpp 30 ScriptReader.cpp 31 SearchDirCmd.cpp 32 SectionsCmd.cpp 33 StrToken.cpp 34 StringList.cpp 35 TernaryOp.cpp 36 UnaryOp.cpp 37 WildcardPattern.cpp 38 ${BISON_PARSER_OUTPUTS} 39 ${FLEX_LEXER_OUTPUTS} 40 ) 41