summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: 4cfb9ae28fae504a63e7f4b8b05172a2f885dcb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#################################################
#
#  (C) 2011 Timothy Pearson
#  kb9vqf (AT) pearsoncomputing.net
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

include_directories(
  ${TQT_INCLUDE_DIRS}
  ${TDE_INCLUDE_DIR}
  ${CMAKE_BINARY_DIR}
  ${CMAKE_BINARY_DIR}/src
  ${CMAKE_SOURCE_DIR}/src
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)

include( ${CMAKE_SOURCE_DIR}/BisonMacros.cmake )

##### other data ################################

install( FILES abakus.desktop DESTINATION ${APPS_INSTALL_DIR}/Utilities )
install( FILES abakusui.rc DESTINATION ${DATA_INSTALL_DIR}/abakus )

##### abakus (executable) #######################

GENERATE_BISON_FLEX_SOURCES(${CMAKE_SOURCE_DIR}/src/parser.yy "" ${CMAKE_SOURCE_DIR}/src/lexer.ll "")

if( HAVE_MPFR )
  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
    mainwindow.cpp node.cpp
    numerictypes.cpp result.cpp
    resultlistview.cpp resultlistviewtext.cpp
    rpnmuncher.cpp valuemanager.cpp dcopIface.skel
    ${BF_SOURCES} ${MPFR_SOURCES}
  LINK kio-shared tdecore-shared tdeprint-shared tdeui-shared DCOP-shared ${MPFR_LIBRARIES}
  DESTINATION ${BIN_INSTALL_DIR}
)