summaryrefslogtreecommitdiff
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2013-06-28 21:40:16 +0200
committerAlex Neundorf <neundorf@kde.org>2013-06-28 21:40:16 +0200
commitba0e06f250665ee985bb6e94dbee3ca8009b60a7 (patch)
treeba7185d7a6527948d45e07dd187538c19a6f021a /Source/cmake.cxx
parentdaaf6283f5c0e8b7ea7ee93f983ad56d4498788d (diff)
downloadcmake-ba0e06f250665ee985bb6e94dbee3ca8009b60a7.tar.gz
automoc: add a global AUTOMOC_TARGETS_FOLDER property
This has been requested, along with a patch, by Shaun Williams in http://public.kitware.com/Bug/view.php?id=13788 . It adds a global property AUTOMOC_TARGETS_FOLDER, which can be used to group the automoc targets together in a folder e.g. in Visual Studio. Alex
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 29d9bb30b1..5f7d1e9c4d 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -3603,6 +3603,14 @@ void cmake::DefineProperties(cmake *cm)
"for the FOLDER target property.");
cm->DefineProperty
+ ("AUTOMOC_TARGETS_FOLDER", cmProperty::GLOBAL,
+ "Name of FOLDER for *_automoc targets that are added automatically by "
+ "CMake for targets for which AUTOMOC is enabled.",
+ "If not set, CMake uses the FOLDER property of the parent target as a "
+ "default value for this property. See also the documentation for the "
+ "FOLDER target property and the AUTOMOC target property.");
+
+ cm->DefineProperty
("PREDEFINED_TARGETS_FOLDER", cmProperty::GLOBAL,
"Name of FOLDER for targets that are added automatically by CMake.",
"If not set, CMake uses \"CMakePredefinedTargets\" as a default "