Qt Creator CMake port

Based on Tobias Hunger's work from a few months ago.

The CMake configuration needs libclang and Qt paths specified as
CMAKE_PREFIX_PATH.

Auto tests are run with "ctest". At the moment the pass rate is 87%.

Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Cristian Adam
2019-05-12 22:20:56 +02:00
parent f872a95fdd
commit d855b84c5d
232 changed files with 5998 additions and 138 deletions

View File

@@ -0,0 +1,40 @@
add_qtc_plugin(ClangRefactoring
CONDITION TARGET libclang
DEPENDS ClangSupport CPlusPlus
PLUGIN_DEPENDS Core CppTools TextEditor ClangPchManager
SOURCES ${TEST_SOURCES}
baseclangquerytexteditorwidget.cpp baseclangquerytexteditorwidget.h
clangqueryexamplehighlighter.cpp clangqueryexamplehighlighter.h
clangqueryexamplehighlightmarker.h
clangqueryexampletexteditorwidget.cpp clangqueryexampletexteditorwidget.h
clangqueryhighlighter.cpp clangqueryhighlighter.h
clangqueryhighlightmarker.h
clangqueryhoverhandler.cpp clangqueryhoverhandler.h
clangqueryprojectsfindfilter.cpp clangqueryprojectsfindfilter.h clangqueryprojectsfindfilter.ui
clangqueryprojectsfindfilterwidget.cpp clangqueryprojectsfindfilterwidget.h
clangquerytexteditorwidget.cpp clangquerytexteditorwidget.h
clangrefactoringplugin.cpp clangrefactoringplugin.h
editormanagerinterface.h
locatorfilter.cpp locatorfilter.h
projectpartproviderinterface.h
projectpartutilities.cpp projectpartutilities.h
qtcreatorclangqueryfindfilter.cpp qtcreatorclangqueryfindfilter.h
qtcreatoreditormanager.cpp qtcreatoreditormanager.h
qtcreatorrefactoringprojectupdater.cpp qtcreatorrefactoringprojectupdater.h
qtcreatorsearch.cpp qtcreatorsearch.h
qtcreatorsearchhandle.cpp qtcreatorsearchhandle.h
qtcreatorsymbolsfindfilter.cpp qtcreatorsymbolsfindfilter.h
querysqlitestatementfactory.h
refactoringclient.cpp refactoringclient.h
refactoringconnectionclient.cpp refactoringconnectionclient.h
refactoringengine.cpp refactoringengine.h
refactoringprojectupdater.cpp refactoringprojectupdater.h
searchhandle.cpp searchhandle.h
searchinterface.h
sourcelocations.h
symbol.h
symbolquery.h
symbolqueryinterface.h
symbolsfindfilter.cpp symbolsfindfilter.h
symbolsfindfilterconfigwidget.cpp symbolsfindfilterconfigwidget.h
)