AbaKus – a complex calculator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4KB

  1. #################################################
  2. #
  3. # (C) 2011 Timothy Pearson
  4. # kb9vqf (AT) pearsoncomputing.net
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. include_directories(
  12. ${TQT_INCLUDE_DIRS}
  13. ${TDE_INCLUDE_DIR}
  14. ${CMAKE_BINARY_DIR}
  15. ${CMAKE_BINARY_DIR}/src
  16. ${CMAKE_SOURCE_DIR}/src
  17. )
  18. link_directories(
  19. ${TQT_LIBRARY_DIRS}
  20. )
  21. include( ${CMAKE_SOURCE_DIR}/BisonMacros.cmake )
  22. ##### other data ################################
  23. install( FILES abakus.desktop DESTINATION ${APPS_INSTALL_DIR}/Utilities )
  24. install( FILES abakusui.rc DESTINATION ${DATA_INSTALL_DIR}/abakus )
  25. ##### abakus (executable) #######################
  26. GENERATE_BISON_FLEX_SOURCES(${CMAKE_SOURCE_DIR}/src/parser.yy "" ${CMAKE_SOURCE_DIR}/src/lexer.ll "")
  27. if( HAVE_MPFR )
  28. set( MPFR_SOURCES "" )
  29. set( MPFR_LIBRARIES "mpfr gmp" )
  30. else( HAVE_MPFR )
  31. set( MPFR_SOURCES hmath.cpp number.c )
  32. set( MPFR_LIBRARIES "" )
  33. endif( HAVE_MPFR )
  34. tde_add_executable( abakus AUTOMOC
  35. SOURCES abakus.cpp abakuslistview.cpp
  36. dragsupport.cpp editor.cpp
  37. evaluator.cpp function.cpp
  38. mainwindow.cpp node.cpp
  39. numerictypes.cpp result.cpp
  40. resultlistview.cpp resultlistviewtext.cpp
  41. rpnmuncher.cpp valuemanager.cpp dcopIface.skel
  42. ${BF_SOURCES} ${MPFR_SOURCES}
  43. LINK tdeio-shared tdecore-shared tdeprint-shared tdeui-shared DCOP-shared ${MPFR_LIBRARIES}
  44. DESTINATION ${BIN_INSTALL_DIR}
  45. )