Warning, /frameworks/syntax-highlighting/src/indexer/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # when cross compiling, use either the executable offered or try to cross-compile it in place 0002 0003 if(CMAKE_CROSSCOMPILING AND KATEHIGHLIGHTINGINDEXER_EXECUTABLE) 0004 add_executable(katehighlightingindexer IMPORTED GLOBAL) 0005 set_target_properties(katehighlightingindexer PROPERTIES IMPORTED_LOCATION ${KATEHIGHLIGHTINGINDEXER_EXECUTABLE}) 0006 elseif(CMAKE_CROSSCOMPILING) 0007 include(ECMQueryQt) 0008 ecm_query_qt(NATIVE_PREFIX QT_HOST_PREFIX) 0009 message(STATUS "Building katehighlightingindexer against ${NATIVE_PREFIX}") 0010 0011 include(ExternalProject) 0012 ExternalProject_Add(native_katehighlightingindexer 0013 SOURCE_DIR ${CMAKE_SOURCE_DIR} 0014 CMAKE_ARGS -DKSYNTAXHIGHLIGHTING_USE_GUI=OFF 0015 -DECM_DIR=${ECM_DIR} -DCMAKE_PREFIX_PATH=${NATIVE_PREFIX} 0016 -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR} 0017 -DQT_MAJOR_VERSION=6 0018 INSTALL_COMMAND "" 0019 BUILD_BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/native_katehighlightingindexer-prefix/src/native_katehighlightingindexer-build/bin/katehighlightingindexer 0020 ) 0021 add_executable(katehighlightingindexer IMPORTED GLOBAL) 0022 add_dependencies(katehighlightingindexer native_katehighlightingindexer) 0023 set_target_properties(katehighlightingindexer PROPERTIES IMPORTED_LOCATION 0024 ${CMAKE_CURRENT_BINARY_DIR}/native_katehighlightingindexer-prefix/src/native_katehighlightingindexer-build/bin/katehighlightingindexer) 0025 else() 0026 # host build 0027 add_executable(katehighlightingindexer katehighlightingindexer.cpp ../lib/worddelimiters.cpp) 0028 ecm_mark_nongui_executable(katehighlightingindexer) 0029 if(XercesC_FOUND) 0030 add_definitions(-DHAS_XERCESC) 0031 kde_target_enable_exceptions(katehighlightingindexer PRIVATE) 0032 target_link_libraries(katehighlightingindexer Qt6::Core XercesC::XercesC) 0033 else() 0034 target_link_libraries(katehighlightingindexer Qt6::Core) 0035 endif() 0036 endif()