summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-27 22:37:19 -0600
committerTimothy Pearson <[email protected]>2011-11-27 22:37:19 -0600
commita805660cba37d573bd07615cbdb36d3bba11ecc1 (patch)
treedf8f6692bc9d8e82b2a6de9c8035ab71878f27a1 /src/CMakeLists.txt
parentcb997f2b156551f638e497638f91d6e4eb17877a (diff)
downloadabakus-a805660cba37d573bd07615cbdb36d3bba11ecc1.tar.gz
abakus-a805660cba37d573bd07615cbdb36d3bba11ecc1.zip
Add bison support
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c27a931..36a4204 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -21,6 +21,7 @@ link_directories(
${TQT_LIBRARY_DIRS}
)
+include( ${CMAKE_SOURCE_DIR}/BisonMacros.cmake )
##### other data ################################
@@ -29,6 +30,8 @@ install( FILES abakusui.rc DESTINATION ${DATA_INSTALL_DIR} )
##### abakus (executable) #######################
+GENERATE_BISON_FLEX_SOURCES("lexer.ll", "", "parser.yy", "-d")
+
if( HAVE_MPFR )
set( MPFR_SOURCES "hmath.cpp number.c" )
set( MPFR_LIBRARIES "mpfr gmp" )