Cmake: add precompile headers
authorsvost <ya.nowa@yandex.ru>
Tue, 15 Feb 2022 12:52:33 +0000 (15:52 +0300)
committersvost <ya.nowa@yandex.ru>
Tue, 15 Feb 2022 12:52:33 +0000 (15:52 +0300)
CMakeLists.txt
src/CMakeLists.txt

index 4167062..8746d69 100644 (file)
@@ -270,6 +270,143 @@ list(APPEND ALL_DEFINITIONS HAVE_BUILD_INFO)
 
 add_executable(novacoin-qt WIN32 ${ALL_SOURCES})
 
+target_precompile_headers(novacoin-qt
+  PRIVATE
+    <algorithm>
+    <cassert>
+    <cerrno>
+    <cinttypes>
+    <climits>
+    <condition_variable>
+    <csignal>
+    <cstdarg>
+    <cstdint>
+    <cstdio>
+    <cstring>
+    <ctime>
+    <deque>
+    <fstream>
+    <functional>
+    <iomanip>
+    <ios>
+    <iostream>
+    <limits>
+    <list>
+    <map>
+    <memory>
+    <mutex>
+    <ostream>
+    <regex>
+    <set>
+    <stdexcept>
+    <sstream>
+    <string>
+    <tuple>
+    <type_traits>
+    <variant>
+    <vector>
+    <utility>
+    <QtAlgorithms>
+    <QtGlobal>
+    <QtPlugin>
+    <QAbstractButton>
+    <QAbstractItemDelegate>
+    <QAbstractItemModel>
+    <QAbstractItemView>
+    <QAbstractListModel>
+    <QAbstractTableModel>
+    <QAction>
+    <QApplication>
+    <QByteArray>
+    <QCheckBox>
+    <QClipboard>
+    <QColor>
+    <QComboBox>
+    <QCompleter>
+    <QCursor>
+    <QDataWidgetMapper>
+    <QDateTime>
+    <QDesktopServices>
+    <QDialog>
+    <QDialogButtonBox>
+    <QDir>
+    <QDoubleSpinBox>
+    <QDoubleValidator>
+    <QDragEnterEvent>
+    <QEvent>
+    <QEventLoop>
+    <QFile>
+    <QFileDialog>
+    <QFlags>
+    <QFont>
+    <QFrame>
+    <QHeaderView>
+    <QIcon>
+    <QImage>
+    <QImageWriter>
+    <QIntValidator>
+    <QKeyEvent>
+    <QLabel>
+    <QLibraryInfo>
+    <QLineEdit>
+    <QList>
+    <QLocale>
+    <QMainWindow>
+    <QMenu>
+    <QMenuBar>
+    <QMessageBox>
+    <QMetaObject>
+    <QMetaProperty>
+    <QMetaType>
+    <QMimeData>
+    <QModelIndex>
+    <QMovie>
+    <QMutex>
+    <QObject>
+    <QPainter>
+    <QPainterPath>
+    <QPixmap>
+    <QPoint>
+    <QProgressBar>
+    <QPushButton>
+    <QQueue>
+    <QRegExp>
+    <QRegExpValidator>
+    <QScrollBar>
+    <QSet>
+    <QSettings>
+    <QSignalMapper>
+    <QSortFilterProxyModel>
+    <QSplashScreen>
+    <QStackedWidget>
+    <QStandardPaths>
+    <QStatusBar>
+    <QString>
+    <QStringList>
+    <QStyle>
+    <QSystemTrayIcon>
+    <QTableView>
+    <QTabWidget>
+    <QTemporaryFile>
+    <QTextCodec>
+    <QTextDocument>
+    <QTextEdit>
+    <QTextStream>
+    <QThread>
+    <QTime>
+    <QTimer>
+    <QToolBar>
+    <QTranslator>
+    <QTreeWidget>
+    <QTreeWidgetItem>
+    <QUrl>
+    <QUrlQuery>
+    <QWidget>
+    <QVariant>
+    <QVBoxLayout>
+    <QHBoxLayout>
+)
+
 if (NOT MSVC)
 list(APPEND ALL_DEFINITIONS _FORTIFY_SOURCE=2)
 set(ALL_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fstack-protector-all")
index 183d941..a088b3f 100644 (file)
@@ -175,6 +175,44 @@ list(APPEND ALL_DEFINITIONS HAVE_BUILD_INFO USE_IPV6 BOOST_SPIRIT_THREADSAFE)
 
 add_executable(novacoind ${ALL_SOURCES})
 
+target_precompile_headers(novacoind
+  PRIVATE
+    <algorithm>
+    <cassert>
+    <cerrno>
+    <cinttypes>
+    <climits>
+    <condition_variable>
+    <csignal>
+    <cstdarg>
+    <cstdint>
+    <cstdio>
+    <cstring>
+    <ctime>
+    <deque>
+    <fstream>
+    <functional>
+    <iomanip>
+    <ios>
+    <iostream>
+    <limits>
+    <list>
+    <map>
+    <memory>
+    <mutex>
+    <ostream>
+    <regex>
+    <set>
+    <stdexcept>
+    <sstream>
+    <string>
+    <tuple>
+    <type_traits>
+    <variant>
+    <vector>
+    <utility>
+)
+
 if (NOT MSVC)
 list(APPEND ALL_DEFINITIONS _FORTIFY_SOURCE=2)
 set(ALL_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fstack-protector-all")