summaryrefslogtreecommitdiffstats
path: root/tqt/CMakeLists.txt
blob: 3cc49db88c4ff2d67e46628b2420ca16e03798f1 (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
include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${TQT_INCLUDE_DIRS}
  ${CMAKE_SOURCE_DIR}/include
  ${CMAKE_SOURCE_DIR}/src
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)

add_definitions( -DTQT -DSCI_LEXER )

##### tqscintilla (shared)

tde_add_library( tqscintilla SHARED AUTOMOC

  SOURCES
        tqextscintilla.cpp
        tqextscintillaapis.cpp
        tqextscintillabase.cpp
        tqextscintillacommand.cpp
        tqextscintillacommandset.cpp
        tqextscintilladocument.cpp
        tqextscintillalexer.cpp
        tqextscintillalexerbash.cpp
        tqextscintillalexerbatch.cpp
        tqextscintillalexercpp.cpp
        tqextscintillalexercsharp.cpp
        tqextscintillalexercss.cpp
        tqextscintillalexerdiff.cpp
        tqextscintillalexerhtml.cpp
        tqextscintillalexeridl.cpp
        tqextscintillalexerjava.cpp
        tqextscintillalexerjavascript.cpp
        tqextscintillalexerlua.cpp
        tqextscintillalexermakefile.cpp
        tqextscintillalexerperl.cpp
        tqextscintillalexerpov.cpp
        tqextscintillalexerproperties.cpp
        tqextscintillalexerpython.cpp
        tqextscintillalexerruby.cpp
        tqextscintillalexersql.cpp
        tqextscintillalexertex.cpp
        tqextscintillamacro.cpp
        tqextscintillaprinter.cpp
        SciListBox.cpp
        PlatTQt.cpp
        ScintillaTQt.cpp
  LINK
     ${TQT_LIBRARIES}
     src-static

  VERSION 7.0.1

  DESTINATION ${LIB_INSTALL_DIR}
)


###### other data
# translations

file( GLOB _translations RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} tqscintilla_*.qm )

install(
    FILES ${_translations}
    DESTINATION ${TQT_TRANSLATIONS_DIR}
)


# headers

file( GLOB _includes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} tqextscintilla*.h )

install(
    FILES ${_includes}
    DESTINATION ${TQT_INCLUDES_DIR}
)