How to specify a precompiled header to the output of CMake (2.8.12.1) AUTOMOC ?
So far, in the CMakeLists.txt I've tried these two separately:
set(AUTOMOC_MOC_OPTIONS "-bstdafx.h")
set(AUTOMOC_MOC_OPTIONS "-fstdafx.h")
The generated AUTOMOC output when building the project (project_automoc.cpp) only contains the moc_xxx.cpp files:
/* This file is autogenerated, do not edit*/
/// <- stdafx.h should be here ?!?!
#include "moc_widget_fps.cpp"
#include "moc_widget_sysevents.cpp"
findstr /m /s "Q_OBJECT" "*.h"
on the source folder from the command line. There surely is a similar command for Linux/MacOS – Mailand