Files
qt-creator/src/libs/cplusplus/CMakeLists.txt
Eike Ziller 4290c26414 CMake build: Force optimization of CPlusPlus lib
Even in the debug build, as done for the qmake build system. This is for
performance optimization of this critical part for C++ parsing even in
debug / developer builds.

Change-Id: I9552ba9fc44e213f2df1d2d2a64a126af3603fd1
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-06-22 10:10:14 +00:00

53 lines
1.8 KiB
CMake

# 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 Qt5::Concurrent
DEFINES CPLUSPLUS_BUILD_LIB
PUBLIC_DEPENDS 3rd_cplusplus Qt5::Gui
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
SKIP_PCH
)
if(TARGET CPlusPlus)
qtc_enable_release_for_debug_configuration()
if (BUILD_WITH_PCH)
target_precompile_headers(CPlusPlus PRIVATE
"${QtCreator_SOURCE_DIR}/src/shared/qtcreator_gui_pch.h")
endif()
endif()