aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/KDECMakeSettings.cmake
AgeCommit message (Collapse)Author
2017-11-05KDECMakeSettings: more docu about the layout of the build dirDavid Faure
Reviewers: kossebau Subscribers: #build_system, #frameworks Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D7612
2017-08-10Fix the fixChristophe Giboudeaux
2017-08-10Fix build with older CMake versions.Christophe Giboudeaux
VERSION_GREATER_EQUAL was added in CMake 3.7 and ECM still depends on CMake 2.8.12
2017-08-09Set CMAKE_*_OUTPUT_DIRECTORY to run tests without installing.David Faure
Summary: For compatibility reasons, this is only enabled when projects upgrade their find_package(ECM) line to request a version >= 5.38. A little bit like cmake policies: just upgrading ECM is compatible, while increasing the required version can change behaviour. Test Plan: Tested make test in all KF5 frameworks; I have patches for some of them which I can't commit until this is in. Reviewers: cgiboudeaux, kfunk Reviewed By: cgiboudeaux, kfunk Subscribers: kfunk, #frameworks, #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D7198
2017-04-20adapt to fetchpo changes and use vars for target directories to dry codeHarald Sitter
Summary: - fetchpo now expects the output dirs as named arguments - new argument for poqm directories where releaseme will put _qt.po files - variables for both po/ and poqm/ to not repeat the paths all over the place Reviewers: apol Reviewed By: apol Subscribers: #frameworks, #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D5525
2017-04-20use correct variable for fetch-translations injectionHarald Sitter
Summary: KDE_L10N_AUTO_TRANSLATIONS is the name of the relevant option Reviewers: apol Reviewed By: apol Subscribers: #frameworks, #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D5523
2017-04-10Add a test for _repository_name() a function added for fetch-translationsAleix Pol
Summary: It turns out it's more complex than it looks, it's always better to have tests. Reviewers: sitter, aacid Reviewed By: sitter Subscribers: #frameworks, #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D5352
2017-04-07Allow projects to include the file twiceAleix Pol
2017-04-07Move the repository name recognition into a functionAleix Pol
Summary: Otherwise it would pollute the namespace and weird things happened on some projects Reviewers: bshah Reviewed By: bshah Subscribers: #frameworks, #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D5332
2017-04-07Fix rx that matches project names out of the git uriAleix Pol
2017-04-06Introduce fetch-translations build commandAleix Pol
Summary: Makes it possible to fetch translations when building the project. To do so it fetches kde:releaseme and uses the new fetchpo.rb program to download the translations into the build directory. This should make it much easier to integrate translations in the development process. Test Plan: Downloaded and installed translations for some projects Reviewers: #frameworks, #build_system, kfunk, ltoscano, aacid, ilic, sitter Reviewed By: sitter Subscribers: sitter Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D5143
2017-03-06Only register APPLE_* options if(APPLE)Aleix Pol
Summary: Otherwise the cmake cache has noisy values. Test Plan: Recreated a project, it's not listed first thing when calling ccmake. Reviewers: #frameworks, dfaure Reviewed By: dfaure Subscribers: #build_system Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D4630
2017-02-01Fix ENABLE_CLAZY on WindowsHannah von Reth
Summary: Reviewers: smartins, alexmerry, apol Reviewed By: apol Subscribers: #windows, #build_system, #frameworks Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D4389
2016-12-03Find the correct path to the cmake commandv5.29.0-rc1v5.29.0Ovidiu-Florin BOGDAN
Summary: When running tests with hardcoded `cmake`, it get's suffixed to the project's build path. Setting it with an absolute path ensures using the right cmake binary. Test Plan: Compiled, installed. Used to generate tests for kdev-embedded. `cmake` binary is now prefixed with the absolute system path, and no longer with the project's build dir. Reviewers: kfunk, #frameworks, apol Reviewed By: kfunk, apol Subscribers: kfunk Differential Revision: https://phabricator.kde.org/D3568
2016-11-16Use commits.kde.org in links instead of now outdated quickgit.kde.orgFriedrich W. H. Kossebau
also correct link to clazy's README.md (former README)
2016-11-05Make KDECMakeSettings work with KDE_INSTALL_DIRS_NO_DEPRECATEDv5.28.0-rc1Friedrich W. H. Kossebau
REVIEW: 128806
2016-09-15Make sure we don't add the appstream test twicev5.27.0-rc2v5.27.0-rc1v5.27.0v5.26.0-rc2Bhushan Shah
Guard variable we used to ensure this doesn't happen was not scopped to parent and hence was being reset when funciton returns REVIEW: 128917
2016-08-31add full license textAllen Winter
REVIEW: 128780
2016-08-24Create a test that validates projects' appstream informationAleix Pol
At the moment, we're validating it in build.kde.org, but I feel it will be easier for developers to test if we do so locally. This patch does it by seeing which *.appdata.xml files are being installed and validating them. This way we can keep it generic for all KDE projects. REVIEW: 128533
2015-12-28Silence CMP0063 warnings with KDECompilerSettings.Alex Merry
We recommend including KDE "settings" modules with NO_POLICY_SCOPE, both so we can resolve this issue and to allow us to deal with similar things in the future. REVIEW: 126535
2015-11-18Make it possible to enable Clazy on any KDE projectAleix Pol
REVIEW: 126090
2015-10-13make it possible to build KDE Frameworks 5 with a plain qt 5.5.x installed ↵Christoph Cullmann
from the normal qt.io installer on mac os we can revisit this change, if it leads to problems for mac ports or homebrew REVIEW: 125614
2015-09-16Disable X11,XCB etc. detection on OS XSamuel Gaist
Reviewed at https://git.reviewboard.kde.org/r/125163/
2015-02-06Document when modules were added to ECM.Alex Merry
2015-02-04Create an uninstall target by default in KDE projects.Alex Merry
REVIEW: 122359
2014-05-07Windows: Make sure plugin dlls get built inside ${CMAKE_BINARY_DIR}/binAlex Richardson
This is needed for e.g. kpluginfactorytest in kcoreaddons. Plugins are searched relative to the directory containing the running executable and before this commit the unit test was in ${CMAKE_BINARY_DIR}/bin and the plugin dll in ${CMAKE_BINARY_DIR}/lib, which meant that it could not be found. This was not a problem on Linux since there the unit test and the plugin .so ends up in ${CMAKE_CURRENT_BINARY_DIR}. Reviewed on #kde-windows
2014-05-04use the correct global variablesPatrick Spendrin
use CMAKE_[RUNTIME|ARCHIVE|LIBRARY]_OUTPUT_DIRECTORY. dlls and executables are built into the bin subdir and import & static libraries and plugins end up in the lib subdir of the build directory. REVIEW:117965
2014-04-11Add documentation generation using SphinxAlex Merry
This is deliberately modelled very closely on CMake's documentation system. It's a hefty patch, because it involved changing all the documentation to be in reStructuredText format. I also cleaned up the copyright/license statements at the same time. Note that the find modules contain the full license, due to the fact that ecm_use_find_module() copies them out of the ECM distribution.
2014-02-14Improve docs for kde modulesAlex Merry
REVIEW: 115488
2014-02-05Remove commands that just set variables to their defaultsv0.0.10Alex Merry
REVIEW: 115477
2014-01-07Do not set CMP0022Alex Merry
We do not want to suppress any warnings about LINK_INTERFACE_LIBRARIES vs INTERFACE_LINK_LIBRARIES; everything should be using the latter, since we depend on CMake 2.8.12 everywhere. REVIEW: 114903
2014-01-07Improve comments in RPATH section of KDECMakeSettingsAlex Merry
The old comments were somewhat out-of-date.
2013-10-11Comment out the CMAKE_LINK_INTERFACE_LIBRARIESStephen Kelly
2013-10-11Resolve policy error when CMake requirement is 2.8.12.Stephen Kelly
2013-09-20Make add_library(...MODULE...) a proper replacement for kde4_add_pluginAleix Pol
One of the most important things kde4_add_plugin was doing was stripping MODULE targets from its prefix. This change makes it so those targets won't get the prefix by default. REVIEW: 112839
2013-08-22Remove obsolete setting.Stephen Kelly
This is the old name for the setting below it. The old name was never in a release.
2013-03-19Set the CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE variable.Stephen Kelly
The CMAKE_BUILD_INTERFACE_INCLUDES is about to be renamed to that name. The old name can be removed when we require a newer CMake.
2013-02-16Qt5 does not support QT_USE_IMPORTED_TARGETS anymoreAlex Neundorf
Alex
2013-02-16add some commentsAlex Neundorf
Alex
2013-02-09KDECMakeSettings: enable testing by defaultAlex Neundorf
Alex
2013-02-08-better comment (from plasma-framework)Alex Neundorf
Alex
2013-01-25Use the CMAKE_LINK_DEPENDS_NO_SHARED feature.Stephen Kelly
This only has an effect with CMake 2.8.11.
2013-01-25Populate the INTERFACE_INCLUDE_DIRECTORIES of all built targets.Stephen Kelly
This will only have an effect with CMake 2.8.11, but until then, it does no harm.
2012-06-20Make non-gui executables by default and provide a function to reverse it.Stephen Kelly
2012-05-23unset all output directories explicitely, except under WindowsAlex Neundorf
Alex
2012-05-13fix RPATH handlingAlex Neundorf
- we need to make sure that the install dir we are looking at is an absolute path - there was a typo in one of the variable names, it was never right Alex
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-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
2012-02-18-add fix from Rex Dieter to not add directories from ↵Alex Neundorf
CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES to the RPATH Alex
2012-02-18-add more settings to KDECMakeSettings.cmakeAlex Neundorf
Alex