BUG: Fix dependency to input file for QT_WRAP_CPP. Bug #421 - QT_WRAP_CPP
This commit is contained in:
parent
fca398f961
commit
15cdf406d6
@ -144,12 +144,15 @@ void cmQTWrapCPPCommand::FinalPass()
|
|||||||
args.push_back(res);
|
args.push_back(res);
|
||||||
args.push_back(m_WrapHeaders[classNum]);
|
args.push_back(m_WrapHeaders[classNum]);
|
||||||
|
|
||||||
|
std::vector<std::string> realdepends = depends;
|
||||||
|
realdepends.push_back(m_WrapHeaders[classNum]);
|
||||||
|
|
||||||
m_Makefile->AddCustomCommandToOutput(
|
m_Makefile->AddCustomCommandToOutput(
|
||||||
res.c_str(),
|
res.c_str(),
|
||||||
moc_exe.c_str(),
|
moc_exe.c_str(),
|
||||||
args,
|
args,
|
||||||
0,
|
0,
|
||||||
depends,
|
realdepends,
|
||||||
"QT Wrapped File",
|
"QT Wrapped File",
|
||||||
0);
|
0);
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@ IF (QT_FOUND)
|
|||||||
${CMAKE_CURRENT_BINARY_DIR}/foo.ui
|
${CMAKE_CURRENT_BINARY_DIR}/foo.ui
|
||||||
)
|
)
|
||||||
QT_WRAP_UI (myqtlib QTUI_H_SRCS QTUI_S_SRCS ${QTUI_SRCS})
|
QT_WRAP_UI (myqtlib QTUI_H_SRCS QTUI_S_SRCS ${QTUI_SRCS})
|
||||||
QT_WRAP_CPP (myqtlib QT_MOC_SRCS ${SRCS})
|
QT_WRAP_CPP (myqtlib QT_MOC_SRCS ${SRCS} vtkTestMoc.h)
|
||||||
|
|
||||||
MESSAGE("QT files are ${QTUI_S_SRCS}")
|
MESSAGE("QT files are ${QTUI_S_SRCS}")
|
||||||
MESSAGE("QT other files are ${QTUI_H_SRCS}")
|
MESSAGE("QT other files are ${QTUI_H_SRCS}")
|
||||||
|
8
Tests/Wrapping/vtkTestMoc.h
Normal file
8
Tests/Wrapping/vtkTestMoc.h
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <qapplication.h>
|
||||||
|
|
||||||
|
class Foo : public QApplication
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
Foo();
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user