diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-12-07 19:54:15 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-12-07 19:54:15 (GMT) |
commit | a00200e8d409e334d8646d4817d8e78fc11fc311 (patch) | |
tree | 779eb9de89cedb5b0d45073c835db3d6e2e964ef /Source/cmSetPropertiesCommand.cxx | |
parent | 013ec3988129761543b8491e5177f3105a09299a (diff) | |
download | CMake-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.cxx | 17 |
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; |