CMakeLists.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. add_library(KSyntaxHighlighting STATIC)
  2. target_compile_definitions(KSyntaxHighlighting PRIVATE
  3. KSYNTAXHIGHLIGHTING_LIBRARY
  4. HAS_SYNTAX_RESOURCE
  5. )
  6. target_sources(KSyntaxHighlighting PRIVATE
  7. autogenerated/ksyntaxhighlighting_logging.cpp
  8. data/syntax/syntax-data.qrc
  9. data/themes/theme-data.qrc
  10. src/abstracthighlighter.cpp
  11. src/context.cpp
  12. src/contextswitch.cpp
  13. src/definition.cpp
  14. src/definitiondownloader.cpp
  15. src/foldingregion.cpp
  16. src/format.cpp
  17. src/htmlhighlighter.cpp
  18. src/keywordlist.cpp
  19. src/repository.cpp
  20. src/rule.cpp
  21. src/state.cpp
  22. src/syntaxhighlighter.cpp
  23. src/theme.cpp
  24. src/themedata.cpp
  25. src/wildcardmatcher.cpp
  26. src/worddelimiters.cpp
  27. )
  28. target_include_directories(KSyntaxHighlighting
  29. PUBLIC
  30. ${CMAKE_CURRENT_SOURCE_DIR}/include
  31. ${CMAKE_CURRENT_BINARY_DIR}
  32. PRIVATE
  33. ${CMAKE_CURRENT_SOURCE_DIR}/autogenerated
  34. ${CMAKE_CURRENT_SOURCE_DIR}/src
  35. )
  36. target_link_libraries(KSyntaxHighlighting
  37. Qt5::Core
  38. Qt5::Widgets
  39. Qt5::Network
  40. )
  41. include(GenerateExportHeader)
  42. generate_export_header(KSyntaxHighlighting BASE_NAME KSyntaxHighlighting)