summaryrefslogtreecommitdiffstats
path: root/Source/cmSetPropertiesCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-12-07 19:54:15 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-12-07 19:54:15 (GMT)
commita00200e8d409e334d8646d4817d8e78fc11fc311 (patch)
tree779eb9de89cedb5b0d45073c835db3d6e2e964ef /Source/cmSetPropertiesCommand.cxx
parent013ec3988129761543b8491e5177f3105a09299a (diff)
downloadCMake-a00200e8d409e334d8646d4817d8e78fc11fc311.zip
CMake-a00200e8d409e334d8646d4817d8e78fc11fc311.tar.gz
CMake-a00200e8d409e334d8646d4817d8e78fc11fc311.tar.bz2
ENH: implements SetProperties for TEST
Diffstat (limited to 'Source/cmSetPropertiesCommand.cxx')
-rw-r--r--Source/cmSetPropertiesCommand.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmSetPropertiesCommand.cxx b/Source/cmSetPropertiesCommand.cxx
index 0a0993e..d69dddd 100644
--- a/Source/cmSetPropertiesCommand.cxx
+++ b/Source/cmSetPropertiesCommand.cxx
@@ -16,6 +16,7 @@
=========================================================================*/
#include "cmSetPropertiesCommand.h"
#include "cmSetTargetPropertiesCommand.h"
+#include "cmSetTestsPropertiesCommand.h"
// cmSetPropertiesCommand
bool cmSetPropertiesCommand::InitialPass(
@@ -87,6 +88,11 @@ bool cmSetPropertiesCommand::InitialPass(
scope = cmProperty::TARGET;
scopeName = args[1].c_str();
}
+ else if (args[0] == "TEST" && numFiles == 2)
+ {
+ scope = cmProperty::TEST;
+ scopeName = args[1].c_str();
+ }
else
{
this->SetError("called with illegal arguments.");
@@ -133,6 +139,17 @@ bool cmSetPropertiesCommand::InitialPass(
}
break;
case cmProperty::TEST:
+ {
+ std::string errors;
+ bool ret = cmSetTestsPropertiesCommand::
+ SetOneTest(scopeName,propertyPairs, this->Makefile, errors);
+ if (!ret)
+ {
+ this->SetError(errors.c_str());
+ }
+ return ret;
+ }
+ break;
case cmProperty::SOURCE_FILE:
// not implemented yet
break;