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,44 @@
# TODO: Support static build, currently being done with CPLUSPLUS_BUILD_STATIC_LIB
# -- if really needed that is.
# TODO: Make Qt5::Gui optional -- if really needed that is.
add_qtc_library(CPlusPlus
DEPENDS Utils
DEFINES CPLUSPLUS_BUILD_LIB
PUBLIC_DEPENDS 3rd_cplusplus Qt5::Concurrent Qt5::Gui
PUBLIC_INCLUDES "${CMAKE_SOURCE_DIR}/src/libs/3rdparty"
SOURCES
ASTParent.cpp ASTParent.h
ASTPath.cpp ASTPath.h
AlreadyConsideredClassContainer.h
BackwardsScanner.cpp BackwardsScanner.h
CppDocument.cpp CppDocument.h
CppRewriter.cpp CppRewriter.h
DependencyTable.cpp DependencyTable.h
DeprecatedGenTemplateInstance.cpp DeprecatedGenTemplateInstance.h
ExpressionUnderCursor.cpp ExpressionUnderCursor.h
FastPreprocessor.cpp FastPreprocessor.h
FindUsages.cpp FindUsages.h
Icons.cpp Icons.h
LookupContext.cpp LookupContext.h
LookupItem.cpp LookupItem.h
Macro.cpp Macro.h
MatchingText.cpp MatchingText.h
NamePrettyPrinter.cpp NamePrettyPrinter.h
Overview.cpp Overview.h
PPToken.cpp PPToken.h
PreprocessorClient.cpp PreprocessorClient.h
PreprocessorEnvironment.cpp PreprocessorEnvironment.h
ResolveExpression.cpp ResolveExpression.h
SimpleLexer.cpp SimpleLexer.h
SnapshotSymbolVisitor.cpp SnapshotSymbolVisitor.h
SymbolNameVisitor.cpp SymbolNameVisitor.h
TypeOfExpression.cpp TypeOfExpression.h
TypePrettyPrinter.cpp TypePrettyPrinter.h
cppmodelmanagerbase.cpp cppmodelmanagerbase.h
findcdbbreakpoint.cpp findcdbbreakpoint.h
pp-cctype.h pp-engine.cpp
pp-engine.h pp-scanner.cpp
pp-scanner.h
pp.h
)