mirror of
https://github.com/reactos/CMake.git
synced 2025-01-14 15:27:52 +00:00
79568f95ab
Previously, GetIncludeDirectories was called before calling target->AddSourceFile(mocCppSource). Since commit a1c4905f (Use the link information as a source of compile definitions and includes., 2013-02-12), the include directories are determined by the link information. Valid link information requires that the linker language can be determined, which depends on the source files languages and the dependent targets languages. In the case of the no_link_languages target in the unit test, there are no dependencies and the additional source file no_link_languages_automoc.cpp is added to the target at generate-time. That file can be used to determine the linker language, but it must be added to the target before calling GetIncludeDirectories.
10 lines
115 B
C++
10 lines
115 B
C++
|
|
#include <QObject>
|
|
|
|
class Empty : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Empty(QObject *parent = 0) {}
|
|
};
|