[ECMGenerateHeaders] Add option for other header file extension than .h
ClosedPublic

Authored by kossebau on Jun 25 2018, 4:35 PM.

Details

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.

Diff Detail

Repository
R240 Extra CMake Modules
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau created this revision.Jun 25 2018, 4:35 PM
Restricted Application added projects: Frameworks, Build System. · View Herald TranscriptJun 25 2018, 4:35 PM
Restricted Application added subscribers: kde-buildsystem, kde-frameworks-devel. · View Herald Transcript
kossebau requested review of this revision.Jun 25 2018, 4:35 PM
apol accepted this revision.Jun 26 2018, 12:02 PM
apol added a subscriber: apol.

Looks good to me.

This revision is now accepted and ready to land.Jun 26 2018, 12:02 PM
This revision was automatically updated to reflect the committed changes.