aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-04The next number after 1.8 is 5.9.v5.9.0-rc1v5.9.0David Faure
CHANGELOG: extra-cmake-modules versioning is now aligned with KDE Frameworks. Therefore the last release was 1.8, while this one is 5.9.
2015-04-04Upgrade ECM version to 1.9.0.l10n daemon script
2015-03-15Warn about icon filenames with leading characters.Alex Merry
Through a quirk of implementation, old-style icon filenames are accepted by the new-style ecm_install_icons function. It's too late to change it now, as that would break existing projects, but we can warn about it. REVIEW: 122941
2015-03-13Allow configuration of SHARE_INSTALL_DIRHeiko Becker
The motivation behind this change is my distribution moving to a multiarch layout. While the architecture specific stuff (binaries, libraries, etc.) is installed under /usr/${host}/{bin,lib,...} architecture-independent data should still be installed to /usr/share/. REVIEW: 122929 From 014d2166e08cbe6f350a8600a93c8f132ee95661 Mon Sep 17 00:00:00 2001 From: Heiko Becker <heirecka@exherbo.org> Date: Fri, 13 Mar 2015 12:26:31 +0100 Subject: [PATCH] Allow configuration of SHARE_INSTALL_DIR
2015-03-09Fix tab characters in regexes.Alex Merry
There is no "\t" in CMake's regular expression syntax; we need to make the character be interpreted when CMake parses it as a string.
2015-03-06Use lconvert path from Qt cmake config when on Qt >= 5.3.1v1.8.0-rc1v1.8.0Dmitry Shachnev
Qt5LinguistToolsConfig.cmake defines CMake target for lconvert since Qt 5.3.1, so we should use that if it is available. Our own hacks were not working in some configurations (i.e. when there is /usr/bin/lconvert managed by qtchooser, but no qtchooser configuration file). REVIEW: 122626
2015-02-28Improve ECMPackageConfigHelpers documentation.Alex Merry
In particular, strongly recommend looking at the equivalent CMake documentation with regard to PATH_VARS, as a lot of projects that should be making use of it are not.
2015-02-15Upgrade ECM version to 1.8.0.l10n daemon script
2015-02-15Extend ecm_generate_headers macro to also support CamelCase.h headersFriedrich W. H. Kossebau
REVIEW: 122317 Thanks alexmerry and dvratil for review
2015-02-11Add Debian path to search path for qtwaylandscannerJonathan Riddell
Debian likes to install qt binaries into an obscure path, search here as well REVIEW: 122526
2015-02-09Add comment to Android toolchain file.Aleix Pol
2015-02-06Minor: Cleanupv1.7.0-rc1v1.7.0Kevin Funk
2015-02-06Add Android toolchain module to the documentation.Alex Merry
2015-02-06Add missing documentation.Alex Merry
Three modules (ECMCoverageOption, ECMEnableSanitizers and ECMGeneratePkgConfigFile) were not being documented. This commit fixes that situation.
2015-02-06Document when modules were added to ECM.Alex Merry
2015-02-06Move Android toolchain module to ECMAleix Pol
Introduces the new Android toolchain file for being able to easily compile our cmake projects in Android, with an emphasis on Qt projects. CHANGELOG: New Android toolchain support module. REVIEW: 121545
2015-02-04Create an uninstall target by default in KDE projects.Alex Merry
REVIEW: 122359
2015-02-04Add a module to provide an uninstall target.Alex Merry
This is basically just the code available on the CMake FAQ item about `make uninstall`, but packaged up in a convenient module. REVIEW: 122359
2015-02-01Minor documentation syntax fixes.Alex Merry
2015-01-24Warn when mixing relative and absolute paths in KDEInstallDirs.Alex Merry
BUG: 341683 FIXED-IN: 1.7.0 REVIEW: 121999 CHANGELOG: KDEInstallDirs: warn about mixing relative and absolute installation paths on the command line
2015-01-24Revert "Add SameMajorVersionWithPreleases compat option to ecm_setup_version."Alex Merry
This reverts commit 959c374c022394a116e8ceb2b1fce2df11752068. I merged and pushed the wrong branch.
2015-01-24Add SameMajorVersionWithPreleases compat option to ecm_setup_version.Alex Merry
SameMajorVersionWithPreleases is intended implement the versioning scheme followed by many KDE projects: minor releases after some high number (eg: 90) are considered to be pre-releases of the next major version, and are not compatible with the current major version. This allows alpha and beta releases to be ordered correctly by version-number-aware software like package managers (an alpha of version 2 should have a higher number than any release of version 1, but less than version 2.0). So a request for version 2.1.0 of a piece of software should not be satisfied by 2.93.4, because that is actually a pre-release of version 3. On the other hand, a request for version 2.91.0 should be satisfied by version 3.1.0. Note that prereleases are not considered unless explicitly requested, so 2.93.4 will not satisfy requests for version 3 (or version 2) of a piece of software.
2015-01-24Add ecm_add_app_icon function.Alex Merry
This adds an application icon to an executable from PNG files for Windows and Mac OS X. Unlike the similar kde4_add_app_icon macro from kdelibs, this requires icons to be explicitly listed as arguments (meaning CMake can tell when ones are added or deleted and reconfigure as appropriate), and it works with Matthias Benkmann's png2ico tool, as well as the KDE-Win tool of the same name. Currently missing unit tests. Also completely untested (except that `make test` runs on Linux, so there are no obvious syntax errors). With thanks to Ralf Habacker for the inital work on porting kde4_add_app_icon. CHANGELOG: Add ECMAddAppIcon module to add icons to executable targets on Windows and Mac OS X.
2015-01-14Fix CMP0053 warning with CMake 3.1.Alex Merry
With CMake 3.1, @-style variable expansion is deprecated outside of configure_file() or string(CONFIGURE) contexts (CMP0053). This causes ecm_generate_pri_file() to produce dev warnings with this verison of CMake, and would break this function in projects that set CMake 3.1 as their required version. REVIEW: 121971
2015-01-13Stop lying in the KDEInstallDirs documentation.Alex Merry
2015-01-11Do not unset cache variables in KDEInstallDirs.Alex Merry
Cache variables such as CMAKE_INSTALL_BINDIR may be used by other modules included from parallel parts of the tree, so we should not touch them. We still override them in the runtime environment, but this will not interfere with parallel subtrees of the project. As part of this, the order of precedence of variables specified on the command line is changed, so that KDE_INSTALL_* is considered first (although it is still considered "undefined" in the documentation). This means that if you only specify CMAKE_INSTALL_BINDIR, that will be used by both KDEInstallDirs and GNUInstallDirs, but if you specify both that and KDE_INSTALL_BINDIR, KDEInstallDirs will use KDE_INSTALL_BINDIR instead. This is probably not too useful, but seems more useful than any other arrangement. BUG: 342717 REVIEW: 121982
2015-01-08Upgrade ECM version to 1.7.0.l10n daemon script
2015-01-07fix typo that lead to nearly empty KDE_INSTALL_TARGETS_DEFAULT_ARGS var on macChristoph Cullmann
2014-12-28Fix include directory change spotted by Hrvoje Senjan.v1.6.0-rc1v1.6.0Alex Merry
A previous commit inadvertantly changed the KF5 include prefix to kf5 (uppercase to lowercase).
2014-12-28Improve version file tests.Alex Merry
Mostly just refatoring to have less duplicated code.
2014-12-28Add deprecation warnings for old-style variables.Alex Merry
REVIEW: 121646
2014-12-28Refactor KDEInstallDirs tests.Alex Merry
REVIEW: 121646
2014-12-28Make KDEInstallDirs provide KDE_INSTALL_* variables.Alex Merry
Creating variables whose names start with CMAKE_ is a bad idea for modules distributed outside CMake itself. Since the module is called KDEInstallDirs, having a KDE_INSTALL_ prefix for the variables is clear and intuitive. Both CMAKE_INSTALL_* variables and the older KDELibs4-compatible variables are provided, unless KDE_INSTALL_DIRS_NO_DEPRECATED is set to TRUE before the module is included. Even then, the CMAKE_INSTALL_* variables provided by the GNUInstallDirs module will still be set and understood (for compatibility with that module), unless KDE_INSTALL_DIRS_NO_CMAKE_VARIABLES is set to TRUE. REVIEW: 121646
2014-12-28Fix formatting in ECMSetupVersion.cmake.Alex Merry
2014-12-28Add COMPATIBILITY argument to ecm_setup_version().Alex Merry
Lots of libraries will want to use SameMajorVersion to make sure searching for version 1 of a library doesn't give you version 2, for example. We may want to add another, custom compatibility mode for KDE Frameworks-style versioning, where version x.90.z to x.99.z are alpha/beta releases for version (x+1). REVIEW: 121696
2014-12-17Upgrade ECM version to 1.6.0.l10n daemon script
2014-12-07Fix ECMQueryQmake when Qt5Core is found.Alex Merry
81627ad86d3d7d5e5a7d130dfc746d5b1b58cbe7 broke the case where Qt5 qmake is not in the path or not called qmake-qt5, because it stopped using the location of qmake as provided by the Qt5Core CMake module when found.
2014-12-07Fix ECMSetupVersionTest/new_explicit_header_abspathAlex Merry
The #include in the main.c file did not match the generated header file name, so it was actually incorrectly including the header from another test. BUG: 341576
2014-12-07Fix ECMQueryQmake when Qt5Core is missing.Alex Merry
The wrong syntax for set() was being used. This change also allows QMAKE_EXECUTABLE to be used to override the qmake path even when the Qt5Core CMake module is found.
2014-11-14Update the comments about the default lib MSVC hacksv1.5.0-rc1v1.5.0Alex Merry
Having done a lot of (unrelated) Windows development recently, I've come to understand the situation much better, so I'm recording that information here for the benefit of others.
2014-11-07Set CMAKE_INSTALL_SYSCONFDIR to /etc when CMAKE_INSTALL_PREFIX is /usrAlex Merry
When installing to /usr, we should use /etc for configuration. Using /usr/etc does not make sense. REVIEW: 120246
2014-11-07Do not skip searching for X11 and Wayland on WindowsAlex Merry
While the search is unlikely to succeed on Windows, having different behaviour between the platforms (eg: find_package(Wayland REQUIRED) was not fatal on Windows, even though Wayland_FOUND would always be FALSE) is not ideal, and if someone did port them to Windows for some reason, the find modules should support that. If applications actually want different behaviour between platforms (like requiring a module on Unix, but not on Windows), they should implement that logic themselves (since they will have to deal with targets not being defined, etc, anyway). REVIEW: 120481
2014-11-05Upgrade ECM version to 1.5.0.l10n daemon script
2014-11-03enable -D_USE_MATH_DEFINES on WindowsPatrick von Reth
2014-10-23Upgrade ECM version to 1.4.0.v1.4.0-rc1v1.4.0l10n daemon script
2014-10-21If find_dependency() fails, so should the Config file it is inAlex Merry
REVIEW: 120655
2014-10-19Wayland and QtWayland protocol scannersPier Luigi Fiorini
Add a couple of find modules for wayland-scanner and qtwaylandscanner. These modules find the respective executables and create a target that points to the executable. Targets are respectively Wayland::Scanner and Wayland::QtScanner. There are also macros to generate C protocols with wayland-scanner and C++ wrappers with qtwaylandscanner. REVIEW: 120034
2014-10-03Typov1.3.0-rc1v1.3.0Christophe Giboudeaux
GIT_SILENT
2014-09-16allow qmldir to follow qt_sys_pathHarald Sitter
when running with the KDE_INSTALL_USE_QT_SYS_PATHS option allow QMLDIR in KDEInstallDirs to follow whatever is defined by qmake this change makes sure that qml plugins will end up in a default Qt path when using the super special magic flag.
2014-09-15add support for detecting libgit2 (with version check, API changes a lot)Christoph Cullmann
add FindLibGit2.cmake + doc link scripts tries to detect version not by pkgconfig to work on windows without pkgconfig, too REVIEW: 120196