Fix build with CMake 3.8.

Authored by krop on Apr 27 2017, 2:51 PM.

Description

Fix build with CMake 3.8.

Before CMake 3.8, automoc'ed files were saved in the build directory.
With CMake 3.8, they're now saved into $targetName_autogen/include and exported
to $targetName's INCLUDE_DIRECTORIES variable.

mailserializertest.cpp #includes akonadi_serializer_mail.cpp
which #includes moc_akonadi_serializer_mail.cpp.

As a result, CMake had no way to guess where where the automoc'ed file is.

(cherry picked from commit e5c26385a3b047643856dcc423cb13535ff5d132)

Details

Committed
dfaureMay 5 2017, 1:48 PM
Parents
R44:012576771c1e: GIT_SILENT: prepare 5.5.1
Branches
Unknown
Tags
Unknown