CMake Buildsystem: Enable visibility settings for binaries

This should not matter, but makes the add_qtc_executable targets
match up with the PCH, so that they should build a bit faster.

Change-Id: Ibecaaf7fd98d5b927d52e4956b1bea4a5775afba
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Tobias Hunger
2019-10-11 13:15:11 +02:00
parent fab360d83d
commit b128d498b2
3 changed files with 5 additions and 23 deletions

View File

@@ -838,6 +838,8 @@ function(add_qtc_executable name)
INSTALL_RPATH "${_RPATH_BASE}/${_RELATIVE_LIB_PATH}" INSTALL_RPATH "${_RPATH_BASE}/${_RELATIVE_LIB_PATH}"
RUNTIME_OUTPUT_DIRECTORY "${_output_binary_dir}/${_DESTINATION}" RUNTIME_OUTPUT_DIRECTORY "${_output_binary_dir}/${_DESTINATION}"
QT_SKIP_TRANSLATION "${skip_translation}" QT_SKIP_TRANSLATION "${skip_translation}"
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN ON
${_arg_PROPERTIES} ${_arg_PROPERTIES}
) )
append_extra_translations("${name}" "${_arg_EXTRA_TRANSLATIONS}") append_extra_translations("${name}" "${_arg_EXTRA_TRANSLATIONS}")

View File

@@ -32,16 +32,7 @@
#if defined __cplusplus #if defined __cplusplus
#include <QEvent> #include <QtGui>
#include <QTimer> #include <QtWidgets>
#include <QApplication>
#include <QBitmap>
#include <QCursor>
#include <QImage>
#include <QLayout>
#include <QPainter>
#include <QPixmap>
#include <QStyle>
#include <QWidget>
#endif #endif

View File

@@ -37,18 +37,7 @@
# undef _POSIX_ # undef _POSIX_
#endif #endif
#include <QCoreApplication> #include <QtCore>
#include <QList>
#include <QVariant>
#include <QObject>
#include <QRegExp>
#include <QString>
#include <QStringList>
#include <QTextCodec>
#include <QPointer>
#include <QScopedPointer>
#include <QSharedPointer>
#include <QDebug>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include <QTextStream> #include <QTextStream>