Necessary to change KDE4_AUTOMOC macro to support

enable-final argument

(there was not a dependancy between <name>_final.cpp file and
moc generated files => moc files were never created)

Not necessary to rebuild all kdelibs just cp kdelibs/cmake/modules/KDE4Macros.cmake <path_kde4>/share/apps/cmake/modules

I ported and tested all kde module (without enable-final argument, it compiles fines (test and program))
Don't try to use enable-final argument for the moment it doesn't compile (but dependancy works)

Regards

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=595039
This commit is contained in:
Laurent Montel 2006-10-13 07:55:37 +00:00
parent bf8eee7e6e
commit 11ce1795b3
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ set(plasma_LIB_SRCS
appletLayout.cpp appletLayout.cpp
appletCompositor.cpp ) appletCompositor.cpp )
kde4_automoc(${plasma_LIB_SRCS}) kde4_automoc(plasma ${plasma_LIB_SRCS})
kde4_add_library(plasma SHARED ${plasma_LIB_SRCS}) kde4_add_library(plasma SHARED ${plasma_LIB_SRCS})

View File

@ -5,7 +5,7 @@ include_directories( ${CMAKE_SOURCE_DIR}/workspace/plasma/lib )
set(testAppletInfo_SRCS testAppletInfo.cpp ) set(testAppletInfo_SRCS testAppletInfo.cpp )
kde4_automoc(${testAppletInfo_SRCS}) kde4_automoc(testAppletInfo ${testAppletInfo_SRCS})
kde4_add_executable(testAppletInfo ${testAppletInfo_SRCS}) kde4_add_executable(testAppletInfo ${testAppletInfo_SRCS})