aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/3rdparty/syntax-highlighting/CMakeLists.txt
blob: 27cc4082230171277d246ec7f5e165694fecc245 (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
add_qtc_library(KSyntaxHighlighting STATIC
  PUBLIC_INCLUDES autogenerated/ autogenerated/src/lib src/lib
  PUBLIC_DEFINES KSYNTAXHIGHLIGHTING_LIBRARY
  DEPENDS Qt5::Network Qt5::Gui
  SOURCES
    autogenerated/src/lib/ksyntaxhighlighting_logging.cpp autogenerated/src/lib/ksyntaxhighlighting_logging.h
    autogenerated/ksyntaxhighlighting_version.h

    data/themes/theme-data.qrc

    src/lib/abstracthighlighter.cpp src/lib/abstracthighlighter.h src/lib/abstracthighlighter_p.h
    src/lib/context.cpp src/lib/context_p.h
    src/lib/contextswitch.cpp src/lib/contextswitch_p.h
    src/lib/definition.cpp src/lib/definition.h
    src/lib/definitiondownloader.cpp src/lib/definitiondownloader.h
    src/lib/definitionref_p.h
    src/lib/definition_p.h
    src/lib/foldingregion.cpp src/lib/foldingregion.h
    src/lib/format.cpp src/lib/format.h src/lib/format_p.h
    src/lib/htmlhighlighter.cpp src/lib/htmlhighlighter.h
    src/lib/keywordlist.cpp src/lib/keywordlist_p.h
    src/lib/ksyntaxhighlighting_export.h
    src/lib/matchresult_p.h
    src/lib/repository.cpp src/lib/repository.h src/lib/repository_p.h
    src/lib/rule.cpp src/lib/rule_p.h
    src/lib/state.cpp src/lib/state.h src/lib/state_p.h
    src/lib/syntaxhighlighter.cpp src/lib/syntaxhighlighter.h
    src/lib/textstyledata_p.h
    src/lib/theme.cpp src/lib/theme.h
    src/lib/themedata.cpp src/lib/themedata_p.h
    src/lib/wildcardmatcher.cpp src/lib/wildcardmatcher_p.h
    src/lib/xml_p.h
)

install(
  DIRECTORY data/syntax
  DESTINATION "${IDE_DATA_PATH}/generic-highlighter/"
)

add_custom_target(copy_generic_highligher_to_builddir ALL VERBATIM)
add_custom_command(TARGET copy_generic_highligher_to_builddir POST_BUILD
  COMMAND "${CMAKE_COMMAND}" -E copy_directory data/syntax
    "${PROJECT_BINARY_DIR}/${IDE_DATA_PATH}/generic-highlighter/syntax"
  WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
  COMMENT Copy files into build directory
  VERBATIM
)