[kdelibs/frameworks] kdewidgets: Generate the moc files (add missing dependency)
David Faure
faure at kde.org
Fri Jun 29 10:27:53 UTC 2012
Git commit 46a3dd1fccc3c6d7868b1385762563247e6a2ed7 by David Faure.
Committed on 29/06/2012 at 07:22.
Pushed by dfaure into branch 'frameworks'.
Generate the moc files (add missing dependency)
Alex wrote:
The difference here is that qt4_generate_moc() from KDE calls
macro_add_file_dependency() to make the cpp file depend on the generated moc
file, so the moc is created. The one coming with cmake doesn't do this, so
this dependency is not there and the file is not created.
CCMAIL: kde-buildsystem at kde.org
M +4 -0 kdewidgets/CMakeLists.txt
http://commits.kde.org/kdelibs/46a3dd1fccc3c6d7868b1385762563247e6a2ed7
diff --git a/kdewidgets/CMakeLists.txt b/kdewidgets/CMakeLists.txt
index 497293e..37eaef8 100644
--- a/kdewidgets/CMakeLists.txt
+++ b/kdewidgets/CMakeLists.txt
@@ -44,6 +44,7 @@ if(QT_QTDESIGNER_FOUND)
set(kdewidgets_PART_SRCS
classpreviews.cpp
${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp
+ ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.moc
)
qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.moc)
@@ -74,6 +75,7 @@ if(QT_QTDESIGNER_FOUND)
set(kdedeprecated_PART_SRCS
classpreviews.cpp
${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.cpp
+ ${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.moc
)
qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.cpp ${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.moc)
@@ -109,6 +111,7 @@ if(QT_QTDESIGNER_FOUND)
set(kdewebkitwidgets_PART_SRCS
classpreviews.cpp
${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp
+ ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.moc
)
qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.moc)
@@ -145,6 +148,7 @@ if(QT_QTDESIGNER_FOUND)
set(kde3supportwidgets_PART_SRCS
classpreviews.cpp
${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.cpp
+ ${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.moc
)
qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.cpp ${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.moc)
More information about the Kde-buildsystem
mailing list