aboutsummaryrefslogtreecommitdiff
path: root/modules/ECMGenerateHeaders.cmake
AgeCommit message (Collapse)Author
2021-08-04modules/ECMGenerateHeaders.cmake - avoid uninitialized warningAllen Winter
Check for EGH_REQUIRED_HEADERS definition before using. Avoids a CMake warning for unitialized values.
2021-06-07modules/ECMGenerateHeaders.cmake - init originalprefixAllen Winter
to make cmake --warn-uninitialized happy
2021-04-23Modules docs: move rst docs into bracket commentsFriedrich W. H. Kossebau
CMake >= 3.0 supports bracket comments, and the reStructuredText integration code in sphinx/ext/ecm.py already supports extracting the docs from a bracket comment instead. Editing documentation without leading line comment markers is more simple, e,g. when reflowing text over lines. With ECM meanwhile requiring CMake 3.5 now it is possible to switch (and thus follow also the approach used by cmake itself). NO_CHANGELOG
2020-06-14extra-cmake-modules: Convert to SPDX license statementsAndreas Cord-Landwehr
2018-06-26[ECMGenerateHeaders] Add option for other header file extension than .hFriedrich W. H. Kossebau
Summary: Quite some C++-based projects do not use .h as header file extension, but .hpp, .hxx or other variants. Making the header file extension configurable enables to make use of ECMGenerateHeaders in such projects. Test Plan: The added unit test works, existing unit tests work as before. Also using in project with .hpp files works. Reviewers: apol Reviewed By: apol Subscribers: apol, kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D13721
2016-08-31add full license textAllen Winter
REVIEW: 128780
2015-08-25add COMMON_HEADER option and multiple header functionalityv5.14.0-rc1v5.14.0Patrick Spendrin
This adds a new keyword COMMON_HEADER which generates a new header containing all other headers. Also it is possible now to have multiple dummy headers per header file. It is assumed that the first header is the existing one. REVIEW: 124847
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-06Document when modules were added to ECM.Alex Merry
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-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-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-01-13Avoid '//' in paths in generated header filesDan Vrátil
REVIEW: 114888
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