summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/CMakeLists.txt
blob: edc9fd1c88f027ba0259b425e17c994c61fa5693 (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
#################################################
#
#  (C) 2012 Golubev Alexander
#  fatzer2 (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

add_subdirectory( KWidgetStreamer )
add_subdirectory( KMultiFormListBox )
add_subdirectory( picts )
add_subdirectory( predefined )

# FIXME: add optional test compilation
# add_subdirectory( test-without-dl )

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/KWidgetStreamer
  ${CMAKE_CURRENT_SOURCE_DIR}/KMultiFormListBox 
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
  ${CMAKE_CURRENT_BINARY_DIR}/KWidgetStreamer
)

add_definitions(
  -DTQT_NO_CAST_ASCII
)


##### kregexpeditor (executable) ################

tde_add_executable( kregexpeditor AUTOMOC
  SOURCES main.cpp
  LINK tdeio-shared
  DESTINATION ${BIN_INSTALL_DIR}
  LINK kregexpeditorcommon-shared
)



##### kregexpeditorcommon (shared) ##############

tde_add_library( kregexpeditorcommon SHARED AUTOMOC
  SOURCES kregexpeditorgui.cpp editorwindow.cpp
    regexpwidget.cpp drag.cpp concwidget.cpp
    zerowidgets.cpp dragaccepter.cpp
    repeatwidget.cpp characterswidget.cpp
    altnwidget.cpp limitedcharlineedit.cpp
    textregexp.cpp textrangeregexp.cpp
    concregexp.cpp altnregexp.cpp
    positionregexp.cpp dotregexp.cpp
    repeatregexp.cpp textwidget.cpp
    selectablelineedit.cpp
    multicontainerwidget.cpp
    scrollededitorwindow.cpp compoundwidget.cpp
    singlecontainerwidget.cpp widgetfactory.cpp
    dcbutton.cpp gen_qregexplexer.cpp
    gen_qregexpparser.cc charselector.cpp
    lookaheadregexp.cpp lookaheadwidget.cpp
    regexp.cpp infopage.cpp
    kregexpeditorprivate.cpp compoundregexp.cpp
    auxbuttons.cpp myfontmetrics.cpp
    regexpbuttons.cpp userdefinedregexps.cpp
    verifier.cpp verifybuttons.cpp errormap.cpp
    qtregexphighlighter.cpp regexpconverter.cpp
    qtregexpconverter.cpp
    emacsregexpconverter.cpp
    regexphighlighter.cpp util.cpp
  VERSION 1.0.0
  LINK tdeio-shared tdemultiformlistbox-static
    kwidgetstreamer-static
  DESTINATION ${LIB_INSTALL_DIR}
)



##### kregexpeditorgui (kpart) ##################

tde_add_kpart( libkregexpeditorgui AUTOMOC
  SOURCES kregexpeditorfactory.cpp
  DESTINATION ${PLUGIN_INSTALL_DIR}
  LINK kregexpeditorcommon-shared
)


##### icons #####################################

tde_install_icons( )


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

install( FILES kregexpeditor.desktop
  DESTINATION ${XDG_APPS_INSTALL_DIR}
)

install( FILES kregexpeditorgui.desktop
  DESTINATION ${SERVICES_INSTALL_DIR}
)