Changeset View
Changeset View
Standalone View
Standalone View
src/indexer/CMakeLists.txt
1 | if(CMAKE_CROSSCOMPILING AND KATEHIGHLIGHTINGINDEXER_EXECUTABLE) | ||||
---|---|---|---|---|---|
2 | # cross build, we need the indexer supplied externally | ||||
3 | add_executable(katehighlightingindexer IMPORTED GLOBAL) | ||||
4 | set_target_properties(katehighlightingindexer PROPERTIES IMPORTED_LOCATION ${KATEHIGHLIGHTINGINDEXER_EXECUTABLE}) | ||||
5 | else() | ||||
6 | # host build | ||||
1 | add_executable(katehighlightingindexer katehighlightingindexer.cpp) | 7 | add_executable(katehighlightingindexer katehighlightingindexer.cpp) | ||
2 | | ||||
3 | if(Qt5XmlPatterns_FOUND) | 8 | if(Qt5XmlPatterns_FOUND) | ||
4 | target_link_libraries(katehighlightingindexer Qt5::XmlPatterns) | 9 | target_link_libraries(katehighlightingindexer Qt5::XmlPatterns) | ||
5 | else() | 10 | else() | ||
6 | target_link_libraries(katehighlightingindexer Qt5::Core) | 11 | target_link_libraries(katehighlightingindexer Qt5::Core) | ||
7 | endif() | 12 | endif() | ||
13 | endif() |