blob: 16fd861282cbd896508d392d3922f06fba1ad607 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
.. ecm-manual-description: ECM Modules Reference
ecm-modules(7)
**************
.. only:: html or latex
.. contents::
Introduction
============
Extra CMake Modules (ECM) provides various modules that provide useful functions
for CMake scripts. ECM actually provides three types of modules: those that
extend the functionality of the ``find_package`` command are documented in
:manual:`ecm-find-modules(7)`; those that provide standard settings for software
produced by the KDE community are documented in :manual:`ecm-kde-modules(7)`.
The rest provide macros and functions for general use by CMake scripts and are
documented here.
To use these modules, you need to tell CMake to find the ECM package, and
then add either ``${ECM_MODULE_PATH}`` or ``${ECM_MODULE_DIR}`` to the
``CMAKE_MODULE_PATH`` variable:
.. code-block:: cmake
find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_DIR})
Using ``${ECM_MODULE_PATH}`` will also make the find modules and KDE modules
available.
All Modules
===========
.. toctree::
:maxdepth: 1
:glob:
/module/*
.. only:: man
See Also
========
:manual:`ecm(7)`, :manual:`ecm-find-modules(7)`, :manual:`ecm-kde-modules(7)`
|