aboutsummaryrefslogtreecommitdiff
path: root/modules
AgeCommit message (Collapse)Author
2014-02-21Defer to CMake's find_dependency macro if it existsAlex Merry
This will be available in CMake 3.0.0. This way, we automatically pick up any new features from it. REVIEW: 115775
2014-02-19Remove CMakePackageConfigHelpers.cmakeAlex Merry
All the frameworks are ported now, so this is no longer necessary. Checked by building everything with kdesrc-build.
2014-02-18Simplify argument parsing for ecm_generate_headersAlex Merry
Now that we no longer have to support the old syntax, some of the more complex bits of the argument parsing can be removed. REVIEW: 115869
2014-02-18Rename CMakePackageConfigHelpers to ECMPackageConfigHelpersAlex Merry
Overriding a CMake package like this will just cause all sorts of headaches later on. In this particular case, projects that depended on CMake 2.8.13 or later (more likely 3.0.0) would fail with a message about removing the CMakePackageConfigHelpers file, but would have no way to do that while still using ECM. This also renames the configure_package_config_file() macro to ecm_configure_package_config_file(), so that anything including CMakePackageConfigHelpers afterwards does not overwrite the macro unexpectedly. For now, we keep a CMakePackageConfigHelpers.cmake file that just wraps ecm_configure_package_config_file() as configure_package_config_file() to keep the frameworks building while they are ported. REVIEW: 115496 Reviewed by Sune Vuorela <kde@pusling.com>
2014-02-16remove old syntax, now that everything has been ported to the new oneDavid Faure
[at least everything that kdesrc-build builds. If there's something else, then it should be added to kdesrc-build...]
2014-02-16Improve the ECMGenerateHeaders API with a variable for generated filesAlex Merry
ecm_generate_headers() now allows/forces the caller to collect the paths of the generated headers, so that they can be passed to the install command. This avoids issues of unexpected files being in the CamelCase includes directory, both from previous builds and because of case-insensitive file systems. MODULE_NAME is removed, as it is no longer desirable or necessary. Instead, the headers are placed directly in the output directory (usually CMAKE_CURRENT_BUILD_DIR). Overall, this makes ecm_generate_headers() behave much more like other file generation macros (like the Qt ones). The old syntax is still supported for now, to make the porting effort easier. REVIEW: 115765
2014-02-11Improve wording of documentation for ECM_INSTALL_ICONSDavid E. Narvaez
Reviewed by: alexmerry
2014-01-25This file provides the function ecm_generate_pri_file().David Faure
ECM_GENERATE_PRI_FILE() creates a .pri file for a library so that qmake-based apps can more easily use the library. It also sets ECM_MKSPECS_INSTALL_DIR as the directory to install the .pri file to. REVIEW: 115099
2014-01-25Make ECMSetupVersion set PROJECT_VERSION_*David Faure
This makes it easier for other functions to access the project version, for instance my upcoming ECM_GENERATE_PRI_FILE()
2014-01-22Mark target created by ecm_add_test as non GUI by defaultAlex Richardson
This behaviour can be overriden by passing the GUI flag to the command REVIEW: 115211
2014-01-13Avoid '//' in paths in generated header filesDan Vrátil
REVIEW: 114888
2014-01-10Rename ECM_VERSION_* to PROJECT_VERSION_* to avoid confusion with ECM's own ↵David Faure
version This is all internal, doesn't change the API or effects of ecm_setup_version.
2014-01-03Install all headers under FrameworkName, add optional PREFIX for namespaced ↵David Faure
headers
2013-12-27Add the REQUIRED_HEADERS and RELATIVE argumentsAleix Pol
RELATIVE is needed because some projects have their headers (and sources) split into different subdirectories. REQUIRED_HEADERS gives the opportunity to receive a list of all the headers we're depending on, in case the user wants to re-use it.
2013-11-05New function to create forward headersAleix Pol
Create ECM_GENERATE_HEADERS, a cmake function that will generate the forward headers like we used to, in cmake configure time. REVIEW: 113406
2013-11-04Improve documentation in ECMInstallIcons.cmakeDavid Edmundson
REVIEW: 113522
2013-11-02Remove ECMPrintVariables.Stephen Kelly
I can't find any use of it, which is semi-expected. It is replaced by CMakePrintHelpers.cmake in CMake upstream.
2013-10-29Copy KDE4 macro to install all icons in the current source dirDavid Edmundson
REVIEW: 113483
2013-10-11Remove obsolete files.Stephen Kelly
These are not used anywhere.
2013-10-07debug--Aleix Pol
2013-10-07Fix typoAleix Pol
ecm_add_test was renamed eventually, but all uses weren't adapted
2013-10-03Add new functions for adding unit testsAlex Richardson
Every framework in KF5 has a macro similar to these, this reduces the unnecessary duplication inside all of the frameworks REVIEW: 112828
2013-10-02Fix typo in comment.Nicolás Alvarez
2013-10-01Remove compatibility signature from ECMSetupVersion.Stephen Kelly
2013-10-01Remove modules which shouldn't be part of the ECM release.Stephen Kelly
2013-09-26Change the signature of the ecm_setup_version macro.Stephen Kelly
Accept a single version argument instead of three. The old signature will be an error in a few days.
2013-09-11Drop ecm_version and ecm_write_version_headerChristophe Giboudeaux
Both macros are obsoleted by ecm_setup_version. REVIEW: 112665
2013-08-27For the CMakePackageConfigHelpers module.Stephen Kelly
Add a macro for finding dependencies. It should be in a future version of CMake. Finding dependencies is one of the major missing pieces of KF5 Config files.
2013-08-22Fix a typo in docsYury G. Kudryashov
2013-04-12Clean up some QtQuick1 stuff.Stephen Kelly
2012-12-12Enable all deprecated API.Stephen Kelly
2012-12-12Add variables for the QtDeclarative library.Stephen Kelly
2012-12-12QtWebkit is now split in QtWebKit and QtWebKitWidgetsJon Severinsson
Make FindQt5Transitional.cmake handle this transparently. REVIEW: 107438
2012-11-25-fix: ecm_setup_version() has no multi-value argumentsAlex Neundorf
Alex
2012-11-23increase version to 0.0.6Alex Neundorf
This commit -adds the macro ecm_setup_version(), as proposed on the kde-frameworks list -sets CMAKE_INSTALL_DEFAULT_COMPONENT_NAME to ${PROJECT_NAME} if a project has been set -makes e-c-m require cmake 2.8.10.1 Alex
2012-10-31Rename file and macro for consistency, as requested by Alexander.David Faure
"Can you please rename it to ECMDBusAddActivationService.cmake and the contained macro to ecm_dbus_add_activation_service(), so it follows the naming conventions in cmake (macro has the same name as the file) and ecm (all macros have the prefix ecm)." -> Done. Nothing to adapt in kdelibs-frameworks yet, it has its own copy for now (I'll get rid of it at the next ECM version upgrade).
2012-10-25QtQuick1 is renamed QtDeclarative.Stephen Kelly
2012-09-16Fix generated version headersDavid Faure
My addition of major/minor/patch included a copy/paste error (double-quotes) and the all-in-one version number (like QT_VERSION and KDE_VERSION) was missing, added now.
2012-09-04Add the macro dbus_add_activation_service to ECM.David Faure
Wrote full docu for it, and then aseigo pointed me to a wiki page that had it all already... http://techbase.kde.org/Development/Tutorials/D-Bus/Autostart_Services
2012-09-03Generate major/minor/patch versions too, for #if tests.David Faure
(and for plugin-loading version number handling)
2012-08-14-increase version number to 0.0.5 (to make it possible to require 0.0.5 in ↵Alex Neundorf
kdelibs for the new file ECMWriteVersionHeader.cmake) Alex
2012-08-13-add function ecm_write_version_header(<outputfile>) which generates a ↵Alex Neundorf
foo_version.h The plan is strip this out of ECMQtFramework.cmake, then ECMQtFramework.cmake will be basically only deal with those Config.cmake files. Alex
2012-07-25Add backwards compatibility for Qt 5 IMPORTED executablesStephen Kelly
2012-06-20List the OpenGL module too.Stephen Kelly
2012-06-20Make non-gui executables by default and provide a function to reverse it.Stephen Kelly
2012-05-23use ${INSTALL_TARGETS_DEFAULT_ARGS} from KDEInstallDirs.cmakeAlex Neundorf
Alex
2012-05-16Set the _FOUND variable correctly for modules.Stephen Kelly
2012-05-12remove LIBRARY_TYPE cmake variableAlex Neundorf
As discussed, remove the LIBRARY_TYPE cmake variable and put BUILD_SHARED_LIBS instead into the cache, set to TRUE. So if somebody wants to build a static library, and the project allows it (by not explicitely using "STATIC" in add_library()), he can switch this variable to FALSE in the cache. Also, put the ARCHIVE library component into the Devel install component, static libs and Windows lib files belong to the development package. Use newer write_basic_package_version_file() instead of older write_basic_config_version_file(), which are identical beside the name Alex
2012-05-12-remove reference to the Use-file, it is not generated anymoreAlex Neundorf
Alex
2012-05-12rework of extra-cmake-modulesAlex Neundorf
-rename the cmake package from extra-cmake-modules to ECM -change variable names and docs accordingly -move setting of Qt-related defines from ECMQtFrameworks.cmake to KDECompilerSettings.cmake -remove ECMSetVersionVariables.cmake, we'll do it some other way -rename ECMConfig.cmake.in to ECMQtFrameworkConfig.cmake.in, since this is where it is used, and it would have the same name as ECMConfig.cmake.in which is for extra-cmake-modules itself Alex