summaryrefslogtreecommitdiffstats
path: root/lib/kformula/CMakeLists.txt
blob: ee3df6cc46f85adc4a3c6a7705fb10782b99fc32 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
###############################################################################
# Trinity KOffice                                                             #
# ---------------                                                             #
# This file is licensed under the terms of GNU GPL v3 or later.               #
# Improvements and feedback are welcome.                                      #
###############################################################################

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/lib/kofficecore
  ${CMAKE_SOURCE_DIR}/lib/kofficeui
  ${CMAKE_SOURCE_DIR}/lib/store
  ${CMAKE_SOURCE_DIR}/lib/kwmf
  ${CMAKE_SOURCE_DIR}/lib/kopalette
  ${CMAKE_SOURCE_DIR}/lib/kotext
  ${CMAKE_BINARY_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)

### Libraries #################################################################
# We have to name it kformulalib, not just kformula, since that's the name of
# the tdeinit module for kformula.
tde_add_library(kformulalib SHARED AUTOMOC
  SOURCES
    basicelement.cpp contextstyle.cpp formulacursor.cpp
    formulaelement.cpp indexelement.cpp kformulacontainer.cpp
    sequenceelement.cpp textelement.cpp bracketelement.cpp
    matrixelement.cpp fractionelement.cpp rootelement.cpp symbolelement.cpp
    kformulacommand.cpp kformulamimesource.cpp
    MatrixDialog.cpp sequenceparser.cpp elementtype.cpp kformuladocument.cpp
    symboltable.cpp kformulainputfilter.cpp kformulaview.cpp
    spaceelement.cpp kformulaconfigpage.cpp
    symbolaction.cpp fontstyle.cpp creationstrategy.cpp
    oasiscreationstrategy.cpp tokenstyleelement.cpp tokenelement.cpp
    identifierelement.cpp operatorelement.cpp glyphelement.cpp styleelement.cpp
    stringelement.cpp paddedelement.cpp errorelement.cpp phantomelement.cpp
    actionelement.cpp encloseelement.cpp entities.cpp operatordictionary.cpp
    numberelement.cpp
  LINK tdeui-shared kotext-shared
  DESTINATION ${LIB_INSTALL_DIR}
)

### Programs ##################################################################
if (BUILD_TESTS)
  tde_add_executable(koformulatest AUTOMOC
    SOURCES main.cpp kformulawidget.cpp
    LINK kformulalib-shared
  )
endif()

### Headers ###################################################################
# install(
#   FILES
#     kformulacontainer.h kformuladocument.h kformulaview.h
#     kformuladefs.h kformulaconfigpage.h
#   DESTINATION ${INCLUDE_INSTALL_DIR}/KOffice
# )

### Data ######################################################################
add_subdirectory(pics)
add_subdirectory(fonts)
add_subdirectory(dtd)

# kate: indent-width 2; replace-tabs true;