aboutsummaryrefslogtreecommitdiff
path: root/modules/KDE4Macros.cmake
AgeCommit message (Collapse)Author
2008-11-10-require cmake 2.6.2Alexander Neundorf
-enable the reduced link interface for everybody now in kdelibs -convert all the set_target_properties(foo LINK_INTERFACE_LIBRARIES...) to the new target_link_libraries(foo LINK_INTERFACE_LIBRARIES ...) -install all shared libs also as "exported targets", so these libraries can be included by the other projects again as "imported targets", which should fix some problems with different build configurations, the reduced link interface, hopefully also custom install locations (Windows), maybe more -remove the temporary internal hackish macro _KDE4_EXPORT_LIBRARY_DEPENDENCIES() Alex, who hopes this doesn't break too much... So if you get linker errors now, please let me know (or even better kde-buildsystem@kde.org) svn path=/trunk/KDE/kdelibs/; revision=882594
2008-11-08SVN_SILENT: correct endifPatrick Spendrin
svn path=/trunk/KDE/kdelibs/; revision=881602
2008-11-08make it possible to add application icons to kdeinit applications too.Patrick Spendrin
This is a rather strange hack but it works and so I want to keep it for now. It does not change anything on Linux. svn path=/trunk/KDE/kdelibs/; revision=881571
2008-11-07-print a warning for users which have not yet updated to cmake 2.6.2Alexander Neundorf
Alex svn path=/trunk/KDE/kdelibs/; revision=881351
2008-09-08-prepare for supporting cmake >= 2.6.2 and TARGET_LINK_LIBRARIES(target ↵Alexander Neundorf
LINK_INTERFACE_LIBRARIES foo bar) Alex svn path=/trunk/KDE/kdelibs/; revision=858896
2008-09-07-save some regex matching and make the code easier readable: since cmake 2.6 ↵Alexander Neundorf
regex matches are stored in the variables CMAKE_MATCH_<number>, so we have to match the regex only once instead of multiple times and can then just use the stored matches Alex svn path=/trunk/KDE/kdelibs/; revision=858379
2008-08-24patch from Alex:Dirk Mueller
- reduce link dependencies even further Further comment fixes. svn path=/trunk/KDE/kdelibs/; revision=851860
2008-08-14fix comment in the generated file, it was not correct anymore, the option ↵Alexander Neundorf
was removed two weeks ago or so Alex svn path=/trunk/KDE/kdelibs/; revision=847138
2008-07-29-this was missing from the commit last night, which enabled the reduced link ↵Alexander Neundorf
interface: always write the reduced link information into KDELibsDependencies file Alex svn path=/trunk/KDE/kdelibs/; revision=838965
2008-07-21fix automoc4 for msvc as discussed on kde-buildsystemChristian Ehrlicher
svn path=/trunk/KDE/kdelibs/; revision=836190
2008-07-21-also disable _KDE4_TARGET_LINK_INTERFACE_LIBRARIES() and use the renamed ↵Alexander Neundorf
LINK_INTERFACE_LIBRARIES target property instead: set_target_properties(foo PROPERTIES ${KDE4_DISABLE_PROPERTY_}LINK_INTERFACE_LIBRARIES "kdeui;kdecore" ) While this doesn't look very nice, it is completely forward and backward compatible (i.e. cmake 2.4 doesn't complain, cmake 2.6 works, both versions work as soon as the reduced link interface is the default (soon), if somebody uses this with kdelibs which don't have that anymore he will get the reduced interface instead of errors, so all should be ok) Alex CCMAIL: mueller@kde.org svn path=/trunk/KDE/kdelibs/; revision=836131
2008-07-20add a message in case somebody stumbles about a ↵Alexander Neundorf
KDE4_TARGET_LINK_INTERFACE_LIBRARIES() call that it has been renamed Alex svn path=/trunk/KDE/kdelibs/; revision=835491
2008-07-20prefix KDE4_TARGET_LINK_INTERFACE_LIBRARIES with a "_", it is unused in svn ↵Alexander Neundorf
and will be removed again for 4.2 I'd like to do the same in the 4.1 branch. Objections ? Alex CCMAIL: mueller@kde.org svn path=/trunk/KDE/kdelibs/; revision=835295
2008-07-18fix for targets with '-' in name on windowsChristian Ehrlicher
svn path=/trunk/KDE/kdelibs/; revision=834424
2008-07-17fix typoDirk Mueller
svn path=/trunk/KDE/kdelibs/; revision=833559
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-07-02point to the correct test filename on windows, second tryChristian Ehrlicher
svn path=/trunk/KDE/kdelibs/; revision=827019
2008-07-01Yeah, nice reversed condition. We have no .bat files on unix. This fixes ↵David Faure
make test... svn path=/trunk/KDE/kdelibs/; revision=826778
2008-06-27test executable is .xe.bat on windows (fake rpath handling)Christian Ehrlicher
svn path=/trunk/KDE/kdelibs/; revision=825239
2008-06-26add KDE4_TARGET_LINK_INTERFACE_LIBRARIES, which I can useDirk Mueller
next monday to reduce excessive links svn path=/trunk/KDE/kdelibs/; revision=824675
2008-06-09just some cosmetics...Alexander Neundorf
Alex svn path=/trunk/KDE/kdelibs/; revision=818828
2008-06-03As discussed with Dirk, make the link interface empty by default, i.e. by ↵Alexander Neundorf
default apps linking to libfoo won't be linked to the libs libfoo.so links against too anymore. This can be enabled by setting with the option KDE4_ENABLE_EXPERIMENTAL_LIB_EXPORT. If enabled, this currently breaks already kdelibs and probably other modules too. Dirk will test. Alex CCMAIL: mueller@kde.org CCMAIL: modestas@vainius.eu svn path=/trunk/KDE/kdelibs/; revision=816409
2008-05-28-also list the tiff file as outputAlexander Neundorf
-the OUTPUT files are deleted automatically on "make clean", so no need to add them explicitely Alex svn path=/trunk/KDE/kdelibs/; revision=813894
2008-05-14the _dummy.cpp file for kdeinit executables doesn't need to have automoc4 to ↵Matthias Kretz
run on it svn path=/trunk/KDE/kdelibs/; revision=807733
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
2008-05-10-rename KDE4_GET/SET_CUSTOM_PROPERTY() to _KDE4..., so they are clearly ↵Alexander Neundorf
marked as internal and not for public use Alex svn path=/trunk/KDE/kdelibs/; revision=806159
2008-04-25-modify kde4_add_kdeinit_executable() so that under windows no longer a ↵Alexander Neundorf
shared lib is created, but just a static library (which doesn't have to be installed), but which is used for linking, see discussion on kde-buildsystem Alex svn path=/trunk/KDE/kdelibs/; revision=801179
2008-04-25-lowercasingAlexander Neundorf
-remove KDE4_ADD_TEST_EXECUTABLE(), which was deprecated and disabled before KDE 4.0.0 Alex svn path=/trunk/KDE/kdelibs/; revision=801160
2008-03-14lowercasingAlexander Neundorf
Alex svn path=/trunk/KDE/kdelibs/; revision=785773
2008-03-04SVN_SILENT: lowercase commands in KDE4_ADD_APP_ICONChristian Ehrlicher
svn path=/trunk/KDE/kdelibs/; revision=782268
2008-03-03much better way to determine icon size - the last fix was not correct in ↵Christian Ehrlicher
some cases svn path=/trunk/KDE/kdelibs/; revision=781786
2008-03-02fix KDE4_ADD_APP_ICON when the path contains '64' or any other needed icon sizeChristian Ehrlicher
svn path=/trunk/KDE/kdelibs/; revision=781336
2008-02-24give each handbook and manpage custom target a unique, recognizable name.Allen Winter
svn path=/trunk/KDE/kdelibs/; revision=778813
2008-02-18some improvements to the docs:Alexander Neundorf
-some modules were not at all documented, only few are left now -the copyright message doesn't have to be printed for every module in the docs -fix FindKorundom.cmake, it didn't follow the style guide and had typos (e.g. Korumdum_FOUND instead of KORUNDUM_FOUND) Alex (will commit modified FindKDE4Internal.cmake after Christians commit) svn path=/trunk/KDE/kdelibs/; revision=776742
2008-01-29Add support to install localized icons.Chusslove Illich
svn path=/trunk/KDE/kdelibs/; revision=768063
2008-01-22patch by dfaure so that the testfoo.shell wrapper is used when runningAllen Winter
'make test' on Unix. We want to do this because testfoo.shell uses the runpath that points to our builddir, rather than installdir. this way, you no longer need to run make install before running make test. as discussed on kde-buildsystem svn path=/trunk/KDE/kdelibs/; revision=764809
2008-01-10make kde4_add_unit_test work properly on OSX together with non-NOGUI tests. ↵Marijn Kruisselbrink
I'm not entirely convinced this is the best way to fix it, but it seems to work fine (and it is at least better than the current situation). svn path=/trunk/KDE/kdelibs/; revision=759619
2008-01-09of course I notice the bug just after I committed it ;(Dirk Mueller
svn path=/trunk/KDE/kdelibs/; revision=759070
2008-01-09fix installation of handbooks when DESTDIR installationDirk Mueller
is used svn path=/trunk/KDE/kdelibs/; revision=758943
2008-01-05SVN_SILENT: KDE4_ADD_WIN32_APP_ICON was renamed to KDE4_ADD_APP_ICONChristian Ehrlicher
svn path=/trunk/KDE/kdelibs/; revision=757741
2008-01-02Add missing icon contexts to the kde4_install_icons() macro.Jakob Petsovits
In case you didn't know it (I didn't as of a few minutes ago): You can use the exact icon context names in the filenames of your installed icons. If you ever wondered where the "app" in ox22-app-mykdeapplication.png came from: that's just KDE 3 compatibility. Using the real name of the context, "apps", works just as well: ox22-apps-mykdeapplication.png (This also works with "actions", "status", "places" and whatever icon contexts the icon naming specification defines.) svn path=/trunk/KDE/kdelibs/; revision=756013
2007-12-31Change the KDE4_CREATE_HANDBOOK macro so that the current source directory ↵Ingo Klöcker
is used as working directory when running meinproc4. This way meinproc4 can find the *.docbook files referenced by index.docbook and sitting next to index.docbook in the source dir. This fixes handbook creation for index.docbook files with references to other *.docbook files. svn path=/trunk/KDE/kdelibs/; revision=755195
2007-12-31clean up - add 128px icon and remove _namePatrick Spendrin
svn path=/trunk/KDE/kdelibs/; revision=755068
2007-12-30Use Ralf's approach - with a little change it also supports subdirs so we've ↵Patrick Spendrin
no point against it anymore :) CCMAIL: Ralf.Habacker@freenet.de svn path=/trunk/KDE/kdelibs/; revision=754837
2007-12-30change KDE4_ADD_APP_ICON to act exactly like KDE4_ADD_WIN32_APP_ICON as the ↵Patrick Spendrin
former did not work correct / was to unflexible CCMAIL: Ralf.Habacker@freenet.de svn path=/trunk/KDE/kdelibs/; revision=754803
2007-12-30- added new macro KDE4_ADD_APP_ICON, which is used for adding application ↵Ralf Habacker
icons on win32 and mac osx - marked KDE4_ADD_WIN32_APP_ICON as deprecated svn path=/trunk/KDE/kdelibs/; revision=754677
2007-12-19-fix RPATH change from yesterdayAlexander Neundorf
The libs and plugins were built with RPATH, but with the install RPATH, which means that if you run some executable during the build, it may get installed libs, since the RPATH in the libs points to the install dir. Now the libs are linked with the RPATH to the build dir, and when installing they are relinked. This unfortunately takes some time. There are two ways around it: -set KDE4_USE_ALWAYS_FULL_RPATH to FALSE, then you will have the old behaviour or -use cmake cvs and current kdesupport, then the RPATH will be changed not by linking again but by running chrpath on the installed binary, which takes basically no time Alex svn path=/trunk/KDE/kdelibs/; revision=750683
2007-11-25rearrange evaluation of executable params to not forget someChristian Ehrlicher
svn path=/trunk/KDE/kdelibs/; revision=741409
2007-11-20if there's nothing to moc, don't add automoc source which is C++, then a lib ↵Matthias Kretz
with only C sources remains a C lib svn path=/trunk/KDE/kdelibs/; revision=739064
2007-11-19-add some more quotes to help with spacesAlexander Neundorf
-use only one SET_TARGET_PROPERTIES() instead of two, kdefakes is build as C++ instead of C library because of automoc (which comes with kde4_add_library, which adds a C++ file to every target). To avoid this simply add_library() could be used, it just has to be made sure that the RPATH is correc (should be automatically) and the correct definitions are set (for exporting the right symbols) Alex CCMAIL: ossi@kde.org svn path=/trunk/KDE/kdelibs/; revision=738871