aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)Author
2008-07-19automoc in kdelibs is dead since a few weeksAlexander Neundorf
Alex CCMAIL: kretz@kde.org svn path=/trunk/KDE/kdelibs/; revision=834705
2008-07-07-make automoc4 required finally (... 4.1 is not too far away)Alexander Neundorf
Alex CCMAIL: kde-buildsystem@kde.org CCMAIL: kretz@kde.org svn path=/trunk/KDE/kdelibs/; revision=829250
2008-05-10-use automoc4 from kdesupport if available, otherwise fallback to the one ↵Alexander Neundorf
from kdelibs. In a few weeks automoc4 from kdesupport will be required. Alex CCMAIL: kretz@kde.org svn path=/trunk/KDE/kdelibs/; revision=806300
2007-07-09As posted to kde-buildsystem:Matthias Kretz
I replaced kde4automoc.cmake with a C++/QtCore based program that can run more efficient. Instead of creating a <targetname>.automoc file that is added to the target I create a <targetname>_automoc.cpp file now that is compiled and linked into the target. This file #includes all moc files that are not included by other source files. This way the automoc can, at make-time, decide what mocs need to be compiled explicitly and linked into the target. E.g. the following is possible now: foo.h: class A : public QObject { Q_OBJECT ... }; foo.cpp does not #include "foo.moc" run make - everything compiles and links fine (without mentioning the header in KDE4_MOC_HEADERS either since the new automoc looks at all corresponding header files from the .cpp files by itself) now change foo.cpp to #include "foo.moc" running make now will just work, even with the /fast target. Next change I did was to create a <targetname>_automoc.cpp.files file to pass the moc includes and the source files that belong to the target to the automoc. I could have kept it on the command line but I got a report that the command line was already too long for Windows' cmd.exe. Implementation details: - The messages of the automoc are written using cmake -E cmake_echo_color, so the automoc correctly colorizes its messages now. - The moc QProcesses are started in parallel (up to 10). svn path=/trunk/KDE/kdelibs/; revision=685719
2006-02-16-replace -fexceptions with ${KDE4_ENABLE_EXCEPTIONS} (I'm not sure this is ↵Alexander Neundorf
a good name for the variable) -add install rules for the cmake files in kdelibs/cmake/modules/ -remove debug output and fix typo in FindOpenEXR.cmake Alex svn path=/trunk/KDE/kdelibs/; revision=510319