summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: 43e81e758bd5be66eb97c5b626f46cbf9e16a461 (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
  ${LIBXML2_INCLUDE_DIR}
  ${LIBXSLT_INCLUDE_DIR}
  ${LIBYAZ_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${TDE_LIB_DIR}
  ${LIBXML2_LIB_DIR}
  ${LIBXSLT_LIB_DIR}
  ${LIBYAZ_LIBRARY_DIRS}
)


##### kbibtex (executable)

tde_add_executable( ${PROJECT_NAME} AUTOMOC

  SOURCES
        kbibtexshell.cpp
        main.cpp
  LINK
     tdecore-shared
     tdeio-shared
     tdeui-shared
     tdeparts-shared

  DESTINATION ${BIN_INSTALL_DIR}
)


##### libkbibtexpart (kpart)

tde_add_kpart( libkbibtexpart AUTOMOC

  SOURCES
        comment.cpp fileexporterdocbook5.cpp
        commentwidget.cpp documentlistview.cpp
        documentlistviewitem.cpp documentsourceview.cpp
        documentwidget.cpp element.cpp
        encoder.cpp encoderlatex.cpp
        encoderxml.cpp entry.cpp
        entryfield.cpp entrywidget.cpp
        entrywidgetauthor.cpp entrywidgetexternal.cpp
        entrywidgetkeyword.cpp entrywidgetmisc.cpp
        entrywidgetother.cpp entrywidgetpublication.cpp
        entrywidgetsource.cpp entrywidgettab.cpp
        entrywidgettitle.cpp entrywidgetuserdefined.cpp
        entrywidgetwarningsitem.cpp z3950connection.cpp
        fieldlineedit.cpp fieldlistview.cpp
        file.cpp fileexporter.cpp
        fileexporterbibtex.cpp fileexporterris.cpp
        fileexporterbibutils.cpp fileexporterexternal.cpp
        fileexporterpdf.cpp fileexporterps.cpp
        fileexporterrtf.cpp fileexportertoolchain.cpp
        fileexporterxml.cpp fileexporterxslt.cpp
        fileimporter.cpp fileimporterbibtex.cpp
        fileimporterbibutils.cpp fileimporterexternal.cpp
        fileimporterris.cpp idsuggestions.cpp
        idsuggestionswidget.cpp kbibtex_part.cpp
        macrowidget.cpp macro.cpp
        mergeelements.cpp preamble.cpp
        webqueryieeexplore.cpp preamblewidget.cpp
        searchbar.cpp settings.cpp
        settingsdlg.cpp settingsediting.cpp
        settingsfileio.cpp settingsidsuggestions.cpp
        settingskeyword.cpp settingssearchurl.cpp
        settingsuserdefinedinput.cpp sidebar.cpp value.cpp
        valuewidget.cpp webquery.cpp
        webqueryamatex.cpp webqueryarxiv.cpp
        webqueryciteseerx.cpp webquerybibsonomy.cpp
        webquerycsb.cpp webquerycitebase.cpp
        webquerydblp.cpp webqueryz3950.cpp
        webquerygooglescholar.cpp webquerypubmed.cpp
        webqueryspireshep.cpp webqueryzmath.cpp
        xsltransform.cpp webquerysciencedirect.cpp
        findduplicates.cpp settingsz3950.cpp
        messagehandler.cpp iso6937converter.cpp
        iso5426converter.cpp webquerymathscinet.cpp
  LINK
     tdecore-shared
     tdeio-shared
     tdeui-shared
     tdeparts-shared
     tdeutils-shared
     katepartinterfaces-shared
     tdetexteditor
     ${ICONV_LIBRARIES}
     ${LIBXML2_LIBRARIES}
     ${LIBXSLT_LIBRARIES}
     ${LIBXSLT_EXSLT_LIBRARIES}
     ${LIBYAZ_LIBRARIES}

  DESTINATION ${PLUGIN_INSTALL_DIR}
)


##### icons

tde_install_icons( )


##### other data

install(
    FILES z3950-servers.cfg kbibtex_shell.rc
    DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
)

tde_create_translated_desktop(
    SOURCE kbibtex_part.desktop
    DESTINATION ${SERVICES_INSTALL_DIR}
)

tde_create_translated_desktop( ${PROJECT_NAME}.desktop )

install(
    FILES kbibtex_part.rc
    DESTINATION ${DATA_INSTALL_DIR}/kbibtexpart
)