summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-27 22:50:47 -0600
committerSlávek Banko <[email protected]>2012-07-29 19:24:38 +0200
commitb163211001db812c1e19afa9fa89cbc251132221 (patch)
tree2cbe2037acbcc53b955e51070d2e8a01844c36cd /src/CMakeLists.txt
parent2016ba9b1ccbef2178c87f7694ccbcd00b492a67 (diff)
downloadabakus-b163211001db812c1e19afa9fa89cbc251132221.tar.gz
abakus-b163211001db812c1e19afa9fa89cbc251132221.zip
Fix FTBFS
(cherry picked from commit 2c82d91b8c5ac4b7b5813a8c09b130e12180974c)
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4420ffb..9802b55 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -30,23 +30,25 @@ install( FILES abakusui.rc DESTINATION ${DATA_INSTALL_DIR} )
##### abakus (executable) #######################
-GENERATE_BISON_FLEX_SOURCES("lexer.ll", "", "parser.yy", "-d")
+GENERATE_BISON_FLEX_SOURCES(${CMAKE_SOURCE_DIR}/src/parser.yy "" ${CMAKE_SOURCE_DIR}/src/lexer.ll "")
if( HAVE_MPFR )
- set( MPFR_SOURCES "hmath.cpp number.c" )
+ set( MPFR_SOURCES "" )
set( MPFR_LIBRARIES "mpfr gmp" )
+else( HAVE_MPFR )
+ set( MPFR_SOURCES hmath.cpp number.c )
+ set( MPFR_LIBRARIES "" )
endif( HAVE_MPFR )
tde_add_executable( abakus AUTOMOC
SOURCES abakus.cpp abakuslistview.cpp
dragsupport.cpp editor.cpp
evaluator.cpp function.cpp
- lexer_lex.cpp mainwindow.cpp
- node.cpp numerictypes.cpp
- parser_yacc.cpp result.cpp
+ mainwindow.cpp node.cpp
+ numerictypes.cpp result.cpp
resultlistview.cpp resultlistviewtext.cpp
rpnmuncher.cpp valuemanager.cpp dcopIface.skel
- ${MPFR_SOURCES}
+ ${BF_SOURCES} ${MPFR_SOURCES}
LINK kio-shared kdecore-shared kdeprint-shared kdeui-shared DCOP-shared ${MPFR_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)