split scintilla in scintilla and lexilla

This commit is contained in:
Martin Marmsoler 2022-01-28 08:22:23 +01:00
parent 7db6af4269
commit 06846a6525

View File

@ -1,7 +1,24 @@
set(SCINTILLA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lexilla) set(SCINTILLA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lexilla)
add_library( add_library(lexilla
scintilla ${SCINTILLA_DIR}/lexlib/Accessor.cxx
${SCINTILLA_DIR}/lexlib/CharacterCategory.cxx
${SCINTILLA_DIR}/lexlib/CharacterSet.cxx
${SCINTILLA_DIR}/lexlib/LexerBase.cxx
${SCINTILLA_DIR}/lexlib/LexerModule.cxx
${SCINTILLA_DIR}/lexlib/LexerSimple.cxx
${SCINTILLA_DIR}/lexlib/PropSetSimple.cxx
${SCINTILLA_DIR}/lexlib/StyleContext.cxx
${SCINTILLA_DIR}/lexlib/WordList.cxx
)
target_include_directories(lexilla
PUBLIC
${SCINTILLA_DIR}/lexlib
${SCINTILLA_DIR}/include
)
add_library(scintilla
${SCINTILLA_DIR}/src/AutoComplete.cxx ${SCINTILLA_DIR}/src/AutoComplete.cxx
${SCINTILLA_DIR}/src/CallTip.cxx ${SCINTILLA_DIR}/src/CallTip.cxx
${SCINTILLA_DIR}/src/CaseConvert.cxx ${SCINTILLA_DIR}/src/CaseConvert.cxx
@ -31,26 +48,22 @@ add_library(
${SCINTILLA_DIR}/src/UniqueString.cxx ${SCINTILLA_DIR}/src/UniqueString.cxx
${SCINTILLA_DIR}/src/ViewStyle.cxx ${SCINTILLA_DIR}/src/ViewStyle.cxx
${SCINTILLA_DIR}/src/XPM.cxx ${SCINTILLA_DIR}/src/XPM.cxx
${SCINTILLA_DIR}/lexlib/Accessor.cxx )
${SCINTILLA_DIR}/lexlib/CharacterCategory.cxx
${SCINTILLA_DIR}/lexlib/CharacterSet.cxx
${SCINTILLA_DIR}/lexlib/LexerBase.cxx
${SCINTILLA_DIR}/lexlib/LexerModule.cxx
${SCINTILLA_DIR}/lexlib/LexerSimple.cxx
${SCINTILLA_DIR}/lexlib/PropSetSimple.cxx
${SCINTILLA_DIR}/lexlib/StyleContext.cxx
${SCINTILLA_DIR}/lexlib/WordList.cxx)
target_compile_definitions( target_compile_definitions(
scintilla scintilla
PUBLIC SCINTILLA_QT SCI_LEXER PUBLIC SCINTILLA_QT SCI_LEXER
PRIVATE SCI_EMPTYCATALOGUE) PRIVATE SCI_EMPTYCATALOGUE)
target_include_directories( target_include_directories(scintilla
scintilla PUBLIC ${SCINTILLA_DIR}/include ${SCINTILLA_DIR}/lexlib PUBLIC
${SCINTILLA_DIR}/src) ${SCINTILLA_DIR}/src
)
target_link_libraries(scintilla Qt5::Widgets) target_link_libraries(scintilla
Qt5::Widgets
lexilla
)
set_target_properties(scintilla PROPERTIES AUTOMOC ON) set_target_properties(scintilla PROPERTIES AUTOMOC ON)