diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-10-17 20:42:47 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-10-17 20:42:47 (GMT) |
commit | 985d092d4d9f6d38c794755c3c64405ef7ec8d35 (patch) | |
tree | 382b35ed4376ba936acb4f160dd4fc5b76173dc6 /Source/CMakeLists.txt | |
parent | 427ed70363ad4aea83e071f46d9704f69472017d (diff) | |
download | CMake-985d092d4d9f6d38c794755c3c64405ef7ec8d35.zip CMake-985d092d4d9f6d38c794755c3c64405ef7ec8d35.tar.gz CMake-985d092d4d9f6d38c794755c3c64405ef7ec8d35.tar.bz2 |
ENH: Add rudamentary mathematical expression support
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 970d11b..db9035d 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -21,6 +21,7 @@ OPTION(CMAKE_REGENERATE_YACCLEX "Regenerate YACC and LEXX files" OFF) MARK_AS_ADVANCED(CMAKE_REGENERATE_YACCLEX) IF(CMAKE_REGENERATE_YACCLEX) + SET(parsersLexers cmCommandArgument cmExpr) FIND_PROGRAM(YACC_EXECUTABLE NAMES yacc bison PATHS /usr/bin @@ -36,7 +37,7 @@ IF(CMAKE_REGENERATE_YACCLEX) SET(BISON_FLAGS "--yacc") ENDIF(YACC_EXECUTABLE MATCHES "bison") SET(yacc_files) - FOREACH(name cmCommandArgument) + FOREACH(name ${parsersLexers}) SET(src "${CMAKE_CURRENT_SOURCE_DIR}/${name}Parser.y") SET(dst "${CMAKE_CURRENT_BINARY_DIR}/${name}Parser.cxx") SET(hdr "${CMAKE_CURRENT_BINARY_DIR}/${name}ParserTokens.h") @@ -51,7 +52,7 @@ IF(CMAKE_REGENERATE_YACCLEX) ENDIF(YACC_EXECUTABLE) IF(FLEX_EXECUTABLE) SET(lex_files) - FOREACH(name cmCommandArgument) + FOREACH(name ${parsersLexers}) SET(src "${CMAKE_CURRENT_SOURCE_DIR}/${name}Lexer.in.l") SET(dst "${CMAKE_CURRENT_BINARY_DIR}/${name}Lexer.cxx") SET(hdr "${CMAKE_CURRENT_BINARY_DIR}/${name}Lexer.h") @@ -98,6 +99,9 @@ SET(SRCS cmDocumentation.cxx cmDynamicLoader.cxx cmDynamicLoader.h + cmExprLexer.cxx + cmExprParser.cxx + cmExprParserHelper.cxx cmGeneratedFileStream.cxx cmGlob.cxx cmGlobalGenerator.cxx @@ -346,6 +350,16 @@ IF(BUILD_TESTING) --build-makeprogram ${MAKEPROGRAM} --test-command StringFileTest) + ADD_TEST(MathTest ${CMAKE_CTEST_COMMAND} + --build-and-test + "${CMake_SOURCE_DIR}/Tests/MathTest" + "${CMake_BINARY_DIR}/Tests/MathTest" + --build-two-config + --build-generator ${CMAKE_GENERATOR} + --build-project MathTest + --build-makeprogram ${MAKEPROGRAM} + --test-command MathTestExec) + ADD_TEST(TryCompile ${CMAKE_CTEST_COMMAND} --build-and-test "${CMake_SOURCE_DIR}/Tests/TryCompile" |