Changeset View
Changeset View
Standalone View
Standalone View
KF5ConfigMacros.cmake
1 | # KCONFIG_ADD_KCFG_FILES (SRCS_VAR [GENERATE_MOC] [USE_RELATIVE_PATH] file1.kcfgc ... fileN.kcfgc) | 1 | # KCONFIG_ADD_KCFG_FILES (SRCS_VAR [GENERATE_MOC] [USE_RELATIVE_PATH] file1.kcfgc ... fileN.kcfgc) | ||
---|---|---|---|---|---|
2 | # KCONFIG_ADD_KCFG_FILES (<target> [GENERATE_MOC] [USE_RELATIVE_PATH] file1.kcfgc ... fileN.kcfgc) (since 5.67) | 2 | # KCONFIG_ADD_KCFG_FILES (<target> [GENERATE_MOC] [USE_RELATIVE_PATH] file1.kcfgc ... fileN.kcfgc) (since 5.67) | ||
3 | # Use this to add KDE config compiler files to your application/library. | 3 | # Use this to add KDE config compiler files to your application/library. | ||
4 | # Use optional GENERATE_MOC to generate moc if you use signals in your kcfg files. | 4 | # Use optional GENERATE_MOC to generate moc if you use signals in your kcfg files. | ||
5 | # Use optional USE_RELATIVE_PATH to generate the classes in the build following the given | 5 | # Use optional USE_RELATIVE_PATH to generate the classes in the build following the given | ||
6 | # relative path to the file. | 6 | # relative path to the file. | ||
7 | # | 7 | # | ||
8 | # Copyright (c) 2006-2009 Alexander Neundorf, <neundorf@kde.org> | 8 | # SPDX-FileCopyrightText: 2006-2009 Alexander Neundorf <neundorf@kde.org> | ||
9 | # Copyright (c) 2006, 2007, Laurent Montel, <montel@kde.org> | 9 | # SPDX-FileCopyrightText: 2006, 2007, Laurent Montel <montel@kde.org> | ||
10 | # Copyright (c) 2007 Matthias Kretz <kretz@kde.org> | 10 | # SPDX-FileCopyrightText: 2007 Matthias Kretz <kretz@kde.org> | ||
11 | # | 11 | # | ||
12 | # Redistribution and use in source and binary forms, with or without | 12 | # SPDX-License-Identifier: BSD-3-Clause | ||
13 | # modification, are permitted provided that the following conditions | | |||
14 | # are met: | | |||
15 | # 1. Redistributions of source code must retain the above copyright | | |||
16 | # notice, this list of conditions and the following disclaimer. | | |||
17 | # 2. Redistributions in binary form must reproduce the above copyright | | |||
18 | # notice, this list of conditions and the following disclaimer in the | | |||
19 | # documentation and/or other materials provided with the distribution. | | |||
20 | # 3. Neither the name of the University nor the names of its contributors | | |||
21 | # may be used to endorse or promote products derived from this software | | |||
22 | # without specific prior written permission. | | |||
23 | # | | |||
24 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | | |||
25 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | |||
26 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | |||
27 | # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | |||
28 | # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | |||
29 | # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | |||
30 | # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | |||
31 | # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | |||
32 | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | |||
33 | # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | |||
34 | # SUCH DAMAGE. | | |||
35 | 13 | | |||
36 | include(CMakeParseArguments) | 14 | include(CMakeParseArguments) | ||
37 | 15 | | |||
38 | function (KCONFIG_ADD_KCFG_FILES _target_or_source_var) | 16 | function (KCONFIG_ADD_KCFG_FILES _target_or_source_var) | ||
39 | set(options GENERATE_MOC USE_RELATIVE_PATH) | 17 | set(options GENERATE_MOC USE_RELATIVE_PATH) | ||
40 | cmake_parse_arguments(ARG "${options}" "" "" ${ARGN}) | 18 | cmake_parse_arguments(ARG "${options}" "" "" ${ARGN}) | ||
41 | 19 | | |||
42 | set(sources) | 20 | set(sources) | ||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |